用非线性最小二乘法lsqnonlin,总是出现以下错误,请指点
用非线性最小二乘法lsqnonlin,总是出现以下错误:??? Error using ==> optim\private\lsqncommon
User supplied function failed with the following error:
Error using ==> unknown
Matrix dimensions must agree.
Error in ==> lsqnonlin at 147
= ...
Error in ==> jiaquan2 at 58
x=lsqnonlin(@fun2,x0);%拟和后的结果
调试了很久,就是找不出毛病。请大家给好好脉吧! 估计是子程序(也就是你的方程)没有写对,注意点乘和乘的区别 首先是不是两矩阵格式就不能相乘哦
因为Error using ==> unknown
Matrix dimensions must agree 问题已解决,是点乘的问题。谢谢各位!
页:
[1]