Problems with exponential fit.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I start with the following data:
x,y
0.0025,10
0.001818,100
0.001429,10000
And try to fit to rate=a*exp(bx) using the following code:
p=fit(x,y,'exp1');
p2=coeffvalues(p);
yfit=p2(1)*exp(p2(2)*x);
semilogy(x,y,'.',x,yfit)
and get a poor quality fit along with values that do not make sense. It really underestimates y for larger x.
Excel’s exponential fit seems reasonable.
Any ideas why the Matlab fit does not work. I was working with small x values so I multiplied by 1000 but it had no effect.
0 Commenti
Risposte (1)
Vedere anche
Categorie
Scopri di più su Curve Fitting Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!