Error model with curve-fitting

조회 수: 3 (최근 30일)
Minu Pilvankar
Minu Pilvankar 2019년 10월 8일
댓글: Minu Pilvankar 2019년 10월 10일
Can I use one of the error models in Simbiology (constant/proportional/combined) while estimating parameters in MATLAB? I am using lsqnonlin for curvefitting and estimating the parameters. How can I incorporate a constant error function with it?

채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2019년 10월 9일
SimBiology's error models are only available when fitting data to SimBiology models using functions like sbiofit. If you are directly calling lsqnonlin, then you are probably doing "traditional" nonlinear least-squares regression, which is equivalent to a constant error model. It is possible to adapt lsqnonlin for other error models, but it requires a fair amount of work. If you can't use sbiofit, then I would recommend using fitnlm (or perhaps nlinfit), if you have a license for Statistics and Machine Learning Toolbox. Both of these functions support proportional and combined error models.
  댓글 수: 3
Arthur Goldsipe
Arthur Goldsipe 2019년 10월 9일
Since I'm a developer on the SimBiology team, my other recommendation would be to use SimBiology. :-)
If that's not possible, you can take a look here to see how sbiofit reformulates other error models into a form that can be used with lsqnonlin.
Minu Pilvankar
Minu Pilvankar 2019년 10월 10일
Thank you Arthur!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Import Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by