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?

 採用された回答

Andrew Newell
Andrew Newell 2011 年 6 月 10 日

0 投票

1 件のコメント

Peter Lützen
Peter Lützen 2011 年 6 月 12 日
Thank you very much, fixed my problem.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by