Borrar filtros
Borrar filtros

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

7 visualizaciones (últimos 30 días)
afrya
afrya el 13 de Dic. de 2013
Comentada: afrya el 13 de En. de 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

Respuesta aceptada

Mischa Kim
Mischa Kim el 12 de En. de 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:')

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by