Effacer les filtres
Effacer les filtres

How can I plot the confidence bounds for an exponential fit?

3 vues (au cours des 30 derniers jours)
afrya
afrya le 13 Déc 2013
Commenté : afrya le 13 Jan 2014
Hi, I'm dong a fit of my data with an exponential fit.When I rum my program , I get the coefficient a ,b, and the coefficient bounds. Exemple: General model Exp1: f(x) = a*exp(b*x) Coefficients (with 95% confidence bounds): a = 1.842 (1.755, 1.929) b = -0.002508 (-0.002784, -0.002232) Do you know how to add the plot of the coefficient bounds at the fitted curve? Thank you in advance

Réponse acceptée

Mischa Kim
Mischa Kim le 12 Jan 2014
You mean something like this?
a = [1.842; 1.755; 1.929];
b = [-0.002508; -0.002784; -0.002232];
x = linspace(-10,50,100);
y_fit = a(1)*exp(b(1)*x);
y_cbl = a(2)*exp(b(2)*x);
y_cbh = a(3)*exp(b(3)*x);
plot(x,y_fit,'r',x,y_cbl,'b:',x,y_cbh,'b:')
  1 commentaire
afrya
afrya le 13 Jan 2014
yes, this is what I was looking for Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by