[問題] 使用 lsqcurvefit 遇到Error using ==> minus 已回收

看板MATLAB作者 (金蓮華!)時間16年前 (2009/05/12 17:51), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
各位好 在下使用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
文章代碼(AID): #1A2KQ-a5 (MATLAB)
文章代碼(AID): #1A2KQ-a5 (MATLAB)