matlab 最小二乘函数lsqcurvefit拟合函数参数的时候出现错误我用lsqcurvefit 函数拟合参数的时候出现下面的错误,Error using ==> optim\private\lsqncommonUser supplied function ==> imgfunfailed with the following error:Sub

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/27 11:54:19
matlab 最小二乘函数lsqcurvefit拟合函数参数的时候出现错误我用lsqcurvefit 函数拟合参数的时候出现下面的错误,Error using ==> optim\private\lsqncommonUser supplied function ==> imgfunfailed with the following error:Sub
xAkADA=&j+Jf3Ivw֙4ނ6-ڔ@Mhgvf7r(Cn20߼ iScVb-omHl VwH=ވ˼^ux} &Nຢ{S} nh;mNvb p( Jl3d.U4cVBcEPr,!lE-,}IC898?'2?r?6dnාEXI h^[i?俏ѶwYJ`1`0%/G0b 4'kbjښ/)t

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函数运行的数据出现了错误 你好好检查检查