作业帮 > 综合 > 作业

非线性最小二乘 matlab

来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/10/06 18:24:49
非线性最小二乘 matlab
之前已经定义过函数c2fun28.m了
K0=[1,1];
>> K=lsqnonlin('c2fun28',K0)
运行后?Error using ==> optim\private\lsqncommon
User supplied function failed with the following error:
Error using ==> feval
Undefined command/function 'c2fun28'.
Error in ==> lsqnonlin at 147
[x,Resnorm,FVAL,EXITFLAG,OUTPUT,LAMBDA,JACOB] = ...
非线性最小二乘 matlab
K=lsqnonlin(@c2fun28,K0)