MATLAB Answers

Jixin
0

How to get the information from the fitting result?

Asked by Jixin
on 22 Jul 2013

Hi,

I'm trying to do an exponential fitting and here is what I've done:

 x = blabla;
 y = blabla;
 f = fit(x,y,'exp1');

then what f contains is like:

 f = 
     General model Exp1:
     f(x) = a*exp(b*x)
     Coefficients (with 95% confidence bounds):
       a =       150.8  (147.9, 153.7)
       b =   0.0005431  (0.000538, 0.0005483)

I would like to get the information of a and b, at least their values, by command lines. How to do it?

Thank you,

Jixin

  0 Comments

Tags

Products

No products are associated with this question.

1 Answer

Answer by Shashank Prasanna
on 23 Jul 2013
 Accepted answer
f.a
f.b
confint(f)

  1 Comment

Jixin
on 23 Jul 2013

That's exactly what I need.

Thank you, Shashank.


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!