<< Curve Fitters (curvefit) Curve Fitters (curvefit) linefit >>

Curve Fitters (curvefit) >> Curve Fitters (curvefit) > expofit

expofit

To Exponentially fit a given set of data points.

Calling Sequence

[yfit,a,c]=expofit(x,y)

Arguments

x

an array of x axis points

y

an array of y axis points

yfit

an array that contains the fitted points

c

coefficient of e^ax

a

coefficient of x such that y=c*e^(a*x)

Description

Returns the fitted data points, coefficients a and c such that y=c*exp(a*x) is the fitted curve.

Examples

x=[1,2,3,4,5];
y=[1,20,90,160,300];
[yfit,a,c]=expofit(x,y)

See Also


Report an issue
<< Curve Fitters (curvefit) Curve Fitters (curvefit) linefit >>