Having data of an exponential decay available, I would like to fit a curve through it. How can I do that in Matlab?
Try this:
ft=fittype('exp1'); cf=fit(time,data,ft)
This is when time and data are your data vectors; time is the independent variable and data is the dependent variable.
time
data
This will give you the coefficients of the exponential decay curve.