非线性最小二乘 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/07/06 22:41:27
非线性最小二乘 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
xK@{AH-L];V:F;C&Ar%)mRtL6|PA֮]>_Xr Rrw~S|~\WU'0GW ۣ z{kӋ&vuOWyi8_,I -;L$s݃i|x,l [ 5ӂ"6 jb:TK H*:#)PM蔁SVuoajxMP<*D/VP)U|&KL;i4ߑ0raމpEɣ X}@q@|a)VWeprKyKeg\6{qy%T^:B̔{]e%f "H+K6µ Fs :)~i됾oA?X#q='75Ҿ =ݿ\Z

非线性最小二乘 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文件的文件夹里