Set an exponential curve through data points in Matlab

Having exponential decay data, I would like to fit a curve through it. How can I do this in matlab?

+4
source share
5 answers

Try the following:

ft=fittype('exp1'); cf=fit(time,data,ft) 

This is when time and data are your data vectors; time is an independent variable, and data is a dependent variable.

This will give you the coefficients of the exponential decay curve.

+5
source

If by position you mean the least squares, you should try lsqcurvefit

+2
source

cftool (X, Y) is the path. here is some binding:

LINK1 LINK2

+1
source

Matlab has a polyfit function. It can correspond to a curve for data that can be represented as a * X ^ n + b * X ^ (n-1) + ..... z. However, if you are sure that the data has some exponential decay, you can try logarithm the data first and then use the polyfit function. I am working.

0
source

Linearize, Least Squares, delinearise :-)

0
source

Source: https://habr.com/ru/post/1344780/


All Articles