matlab 最小二乘函数lsqcurvefit拟合函数参数的时候出现错误
我用lsqcurvefit函数拟合参数的时候出现下面的错误,有哪位大侠可以帮忙解决啊~~谢谢啊!!!!!!!???Errorusing==>optim\private\l...
我用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); 展开
??? 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); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询