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

7 次查看(过去 30 天)
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

采纳的回答

Mischa Kim
Mischa Kim 2014-1-12
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:')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by