- Oct 14, 2001
- 2,492
- 3
- 81
I have a data set that can be fitted pretty well with a linear fit. However I would like to do an exponential fit to see if that would also cover the range I haven't yet sampled (it looks to be tapering towards the extremes so I'll have to widen the range)
If I take the natural log of the data and then fit a linear curve the exponential coefficients will be
linear fit of ln(X) vs Y is y=ax+b
exponential equivalent is y = e^a*e^x + e^b or y= e^ax+e^b
Is that right? I don't know why this is eluding me since it is pretty basic.
Any quick way to do this with Matlab? I know there is a polyfit function, but help didn't pop up anything on exponential fits.
If I take the natural log of the data and then fit a linear curve the exponential coefficients will be
linear fit of ln(X) vs Y is y=ax+b
exponential equivalent is y = e^a*e^x + e^b or y= e^ax+e^b
Is that right? I don't know why this is eluding me since it is pretty basic.
Any quick way to do this with Matlab? I know there is a polyfit function, but help didn't pop up anything on exponential fits.
