Problems with lsqcurvefit

In trying to fit 3 parameters in an ODE system using lsqcurvefit, but MATLAB gives me the following error message:
??? Error using ==> lsqcurvefit at 253
Function value and YDATA sizes are incommensurate.
Error in ==> fit_massb at 21
[kfinal,resn,error,exf,out,l,jac]=lsqcurvefit(@callmassb,k0,tspan,yd,lb,ub,[],x0);
What does this mean?

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Nonlinear Least Squares (Curve Fitting) 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by