필터 지우기
필터 지우기

setting tolerance in lsqcurvefit

조회 수: 4 (최근 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 CenterFile Exchange에서 Least Squares에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by