Problem using nlinfit - poor fit
古いコメントを表示
Dear all,
I have a discrete dataset A(x,y), which I want to fit by a sum of 3 exponentials. My simple code:
par0=[-0.3 0.015 0.1 0.015 1.5e-08 3.8e-08 1.5e-08]; % initial parameter values
fit_par = nlinfit(x,y,@(par,x)(par(1)+par(2).*exp(x/par(5))+par(3).*exp(x/par(6))+par(4).*exp(x/par(7))),par0); % fitting
The fitting is not that great (attached) and I get the following error:
Warning: Some columns of the Jacobian are effectively zero at the solution, indicating that the model is insensitive to some of its parameters. That may
be because those parameters are not present in the model, or otherwise do not affect the predicted values. It may also be due to numerical underflow in
the model function, which can sometimes be avoided by choosing better initial parameter values, or by rescaling or recentering. Parameter estimates may
be unreliable.
Is it due to the very small x values I have or?
How can I get a good fit? Dataset A attached if you want to give it a try.
Thank you
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Interpolation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!