Cutom Curve Fit for mixed plot
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I am trying to fit a custom equation to my data. Using cuve fitting tool box the closest was exp1 fit but it is still not a good fit. I tried the other available fits as well and it did not turned out good. As you see from the attached file at the beginning it is a linear , in the middle it is like exp and at the end it is different than linear and exp fit.
What are your recommendation as an equation to fit that curve.
Thank you
3 Kommentare
Star Strider
am 18 Jan. 2022
What process created those data?
To fit the data, create a methematical model of the process that created them, then fit the parameters of the model.
Sam Chak
am 18 Jan. 2022
Looks like it is plotted on a logarithmic scale. Since the exponential decay model does not fit, and you don't know the process (can be static or dynamic) that creates the data, then you can try the following:
- Rational model – https://www.mathworks.com/help/curvefit/rational.html
- Power series model – https://www.mathworks.com/help/curvefit/power.html
- Or, a combination of both models (requires a Custom model) – https://www.mathworks.com/help/curvefit/custom-nonlinear-models.html
The above suggestions may not solve your problem, but they are based on my experience with certain functions that display the asymptotic convergence behavior.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/866230/image.png)
Antworten (1)
Abhiroop Rastogi
am 23 Feb. 2022
Hi Birsen,
The data shown in the figure looks like it is representing a Weibull Distribution. You can try the inbuilt fittype "weibull" for fitting the curve using the command:
fitCurve = fit(xData,yData,'weibull');
Another fit-type that can be used for the data is "cubicspline" which does a piecewise computation for fitting the curve.
You can use the following command for cubicspline fitting.
fitCurve = fit(xData,yData,'cubicspline');
You can see the resulted plots in the figures attached.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!