My curve is not fitting

조회 수: 1 (최근 30일)
@km
@km 2017년 10월 25일
댓글: @km 2017년 11월 10일
Hello All, I am trying to fit my experimental data with an analytical equation. I am attaching my data and the code that I used. I am doing some mistake. But I am not able to solve it. Thanks in advance for your help.

채택된 답변

Walter Roberson
Walter Roberson 2017년 10월 25일
The coefficients that it comes up with are pretty close to the best you can get for that equation. The best coefficients are quite close to a = 774.958449381415 b = 0.000201392498068715, which I determined by sweeping a lot of the search space. The residual is on the order of 3.48E-9. Coefficients in the range of a = 550-ish with b as large as 45 can give a residual on the order of 7E-9 which is really not bad: it just happens that there is a narrow range above 750 that can do better on a relative scale.
  댓글 수: 7
Walter Roberson
Walter Roberson 2017년 10월 25일
If your data values are not to be considered noise, then the conclusion would seem to be that the function you give to fit to is not a function that describes the curve to the degree that you would like.
Given that particular function, your existing code already finds very nearly the best coefficients that can be found for that data.
@km
@km 2017년 11월 10일
You were right that there was a problem in the analytical model. Thanks for the help. Apologies for the late reply as i wanted some strong conclusion before starting a different approach.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by