MATLAB Answers

Curve fit equation calculation

4 views (last 30 days)
Isac Grossa
Isac Grossa on 9 Feb 2021
Commented: Alex Sha on 10 Feb 2021
Hi, i have a data set and i want to find the best equation can describe the data trend. Cftool need an equation to calculate the fit but i don't know which equation describe better my data; there is a tool or script that can ound the best equation.
Thanks
  6 Comments
Alex Sha
Alex Sha on 10 Feb 2021
Hi, Isac, for time_1 series, one point is miss written? "36.5468 -2.72657737722164" should be "36.5468 -0.72657737722164", if so, refer to the result below:
y=A2+(A1-A2)/(1+exp((x-x0)/dx))+p1*exp(x*p2+p3/x)+p4*x;
Root of Mean Square Error (RMSE): 0.0199485805235078
Sum of Squared Residual: 0.0656610677089744
Correlation Coef. (R): 0.999763315428711
R-Square: 0.999526686877008
Parameter Best Estimate
---------- -------------
a2 -0.94962007323826
a1 0.0535110752630396
x0 337.617289679719
dx -39.219494340785
p1 -1.70924446590519
p2 0.0011217021565316
p3 -218.35619640782
p4 0.0059970024350561

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!