setting tolerance in lsqcurvefit

9 ビュー (過去 30 日間)
Kerry Hipps
Kerry Hipps 2019 年 5 月 19 日
コメント済み: Star Strider 2019 年 5 月 20 日
Can someone give me an example of setting the tolerance in lsqcurve fit? I am getting a terrible fit and it is quiting very quickly. I think it should be possibel to do through the optimoptions function, but I can find no examples with numerical input.
Thanks in advance

採用された回答

Star Strider
Star Strider 2019 年 5 月 19 日
Bad fits with the nonlinear parameter estimation routines are most likely the result of either the model not correctly describing the process that created the data, or inappropriate initial parameter estimates.
You have to determine that you defined and wrote the objective function correctly. The Global Optimization Toolbox functions in the Global or Multiple Starting Point Search (link) functions can help with the initial parameter estimate problem.
  2 件のコメント
Kerry Hipps
Kerry Hipps 2019 年 5 月 20 日
Thank you for your answer. I am sure that the function is appropriate and intial values are close to the desired ones because I call the function with the initial values and plot it over the data defore initiating the fitting.
Star Strider
Star Strider 2019 年 5 月 20 日
My pleasure.
So it’s not a ‘terrible fit’? Your initial parameter estimates may be the best that lsqcurvefit can estimate.

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

その他の回答 (1 件)

Kerry Hipps
Kerry Hipps 2019 年 5 月 20 日
Yes, the actual fit is really terrible with kind of an average line moveing through a sigmoidal like data set.
  1 件のコメント
Star Strider
Star Strider 2019 年 5 月 20 日
I might be able to help with data, code, and other relevant details.

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

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by