[問題] 使用 lsqcurvefit 遇到Error using ==> minus 已回收
各位好
在下使用lsqcurvefit時,遇到了個問題
就是我的xdata及ydata只有皆為單一數的時候才能跑
但是用這個函數的精神就是要處理多筆資料下的平方最小化啊
當xdata及ydata 為 n by 1矩陣時
就會出現
??? Error using ==> lsqncommon at 101
LSQCURVEFIT cannot continue because user supplied objective function failed with the
following error:
Error using ==> minus
Matrix dimensions must agree.
Error in ==> lsqcurvefit at 186
[x,Resnorm,FVAL,EXITFLAG,OUTPUT,LAMBDA,JACOB] = ...
這樣的話問題會是出在目標函數嗎?
希望能得到一點提示 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.120.33.186
→
05/12 21:39, , 1F
05/12 21:39, 1F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章