Fitting experimental data to find a function

6 views (last 30 days)
I have an experimental data I=f(t) and I want to find the equation of This trend.

Accepted Answer

Gareth Lee
Gareth Lee on 18 Oct 2016
You can try polyfit function or other curve fit function, i.e. nlinfit or lsqcurvefit,to find proper equation. you also use cftool to curve or regress your data.
  2 Comments
Anoire BEN JDIDIA
Anoire BEN JDIDIA on 18 Oct 2016
I'm currently testing curve fitting toolbox but how can I know which is the best regression. Ps: in my case is a non linear regression
Gareth Lee
Gareth Lee on 18 Oct 2016
This is a complicate problem, it is hard to say which method is good. you only try it, and judge it with some mathematical index. I suggest that plot it firstly, and estimate the equation according to curve. try it, and obtain some good parameters.

Sign in to comment.

More Answers (1)

KSSV
KSSV on 18 Oct 2016
doc polyfit

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!