非线性最小二乘 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/06/30 21:38:02
![非线性最小二乘 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](/uploads/image/z/15047718-6-8.jpg?t=%E9%9D%9E%E7%BA%BF%E6%80%A7%E6%9C%80%E5%B0%8F%E4%BA%8C%E4%B9%98+matlab%E4%B9%8B%E5%89%8D%E5%B7%B2%E7%BB%8F%E5%AE%9A%E4%B9%89%E8%BF%87%E5%87%BD%E6%95%B0c2fun28.m%E4%BA%86K0%3D%5B1%2C1%5D%3B%3E%3E+K%3Dlsqnonlin%28%27c2fun28%27%2CK0%29%E8%BF%90%E8%A1%8C%E5%90%8E%3FError+using+%3D%3D%3E+optim%5Cprivate%5ClsqncommonUser+supplied+function+failed+with+the+following+error%3AError+using+%3D%3D%3E+fevalUndefined+command%2Ffu)
非线性最小二乘 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文件的文件夹里