Fitting an exponential curve to data and comparing it to excel
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!