matlab 最小二乘函数lsqcurvefit拟合函数参数的时候出现错误我用lsqcurvefit 函数拟合参数的时候出现下面的错误,Error using ==> optim\private\lsqncommonUser supplied function ==> imgfunfailed with the following error:Sub
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 12:02:10
matlab 最小二乘函数lsqcurvefit拟合函数参数的时候出现错误我用lsqcurvefit 函数拟合参数的时候出现下面的错误,Error using ==> optim\private\lsqncommonUser supplied function ==> imgfunfailed with the following error:Sub
matlab 最小二乘函数lsqcurvefit拟合函数参数的时候出现错误
我用lsqcurvefit 函数拟合参数的时候出现下面的错误,
Error using ==> optim\private\lsqncommon
User supplied function ==> imgfun
failed with the following error:
Subscript indices must either be real positive integers or logicals.
Error in ==> lsqcurvefit at 165
[x,Resnorm,FVAL,EXITFLAG,OUTPUT,LAMBDA,JACOB] = ...
Error in ==> imgmodel at 14
x=lsqcurvefit(@imgfun,x0,xdata,ydata);
matlab 最小二乘函数lsqcurvefit拟合函数参数的时候出现错误我用lsqcurvefit 函数拟合参数的时候出现下面的错误,Error using ==> optim\private\lsqncommonUser supplied function ==> imgfunfailed with the following error:Sub
Subscript indices must either be real positive integers or logicals.
这句话是说下标必须是正整数 或是逻辑的 由此推出你在程序中自己定义的imgfun函数运行的数据出现了错误 你好好检查检查