Fitting an exponential curve to data and comparing it to excel
Mostra commenti meno recenti
Hi,
I'm trying to fit an exponential curve to the following dataset: x = [3.9; 8.6; 13.3; 17.9; 22.6]; y = [100; 10; 1; 0.1; 0.01]; I fit an exp curve using: cf = fit(x,y,'exp1'); It gives me the following results: a = 675.8 and b = -0.4899. When I compare it to the equation obtained in Excel, a = 690.81 and b = -0.493. I think that Excel is giving the correct solution. But can anyone explain the difference in results?
Thanks.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Get Started with Curve Fitting Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!