setting tolerance in lsqcurvefit
12 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 个评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!