请问非线性最小二乘拟合编程有啥技巧吗?我怎么就是求不出来呀
function F = myfun228(x)
t=1:1280;
F = x(1)+x(2)*exp(x(3)*t)(x(4)cos(2*pi*x(5)*t)+sqrt(1-x(4)^2)*sin(2*pi*x(5)*t)])+x(6)*exp(x(7)*t);
[x,resnorm] = lsqnonlin(@myfun228,[2.4120 -1.8654 -25000 0.5 119 -0.0247 5000])
??? Error using ==> optim\private\lsqncommon
LSQNONLIN cannot continue because user supplied objective function failed with the following error:
Error: File: myfun228.m Line: 3 Column: 31
Unexpected MATLAB expression.
是函数表达式没写对?还是未知量太多呢?还是其实,请高手们帮忙看一下,谢谢!
C:\Documents and Settings\Administrator\My Documents\My Pictures\非线性最小二乘.bmp