非线性最小二乘 matlab之前已经定义过函数c2fun28.m了K0=[1,1];>> K=lsqnonlin('c2fun28',K0)运行后?Error using ==> optim\private\lsqncommonUser supplied function failed with the following error:Error using ==> fevalUndefined command/fu

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/11 21:49:36

非线性最小二乘 matlab之前已经定义过函数c2fun28.m了K0=[1,1];>> K=lsqnonlin('c2fun28',K0)运行后?Error using ==> optim\private\lsqncommonUser supplied function failed with the following error:Error using ==> fevalUndefined command/fu
非线性最小二乘 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之前已经定义过函数c2fun28.m了K0=[1,1];>> K=lsqnonlin('c2fun28',K0)运行后?Error using ==> optim\private\lsqncommonUser supplied function failed with the following error:Error using ==> fevalUndefined command/fu
K=lsqnonlin(@c2fun28,K0)

是不是你的函数位置放的不对,应刚在放在matlab下一个专门放.m文件的文件夹里