大家好,
我主要是利用Labview來處理一些數據點, 因為需要用到曲線擬合而這個部分交由Matlab script處理,
matlab script裡面中因為要產生fitting的方程式而有用到"function指令",
出現錯誤訊息為 code 1050 "function definitions are not permitted at prompt or in scripts",
請問在Labview中的matlab script中是否不能定義function? 亦或是有其他的寫法?
(一樣的寫法在matlab中可以執行)
感謝各位高手解惑, 謝謝!
以下為一部份matlab script
fitout = lsqcurvefit (@(x,xdata) multipeaks(x,xdata,a),xf,xdata,ydata)
function f=multipeaks(x,xdata,a)
....(multipeaks的format)...