How to apply curve fitter for a table ?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jenifer NG
am 15 Jul. 2022
Kommentiert: Jenifer NG
am 15 Jul. 2022
Hi All,
I want to apply curve fitting to a table each collum in table is a variable.
Now I need to do it manually by each collum in table then export data to workspace.
Is there any way to apply curve fitting for a whole table ? no need to do it manually 1 by 1
I use Exponential equation f(x) = a*exp(b*x) for fitting
I attached my table as table.mat
This is my code after I finish curver fitting manually and export results to worksapce
load table.mat
a=feval(fittedmodel,x)
b=feval(fittedmodel1,x)
c=feval(fittedmodel2,x)
total = [a b c]
plot(total)
0 Kommentare
Akzeptierte Antwort
Rishita
am 15 Jul. 2022
Load some data at the MATLAB® command line.load hahn1
Open the Curve Fitter app.curveFitter
In the Curve Fitter app, on the Curve Fitter tab, in the Data section, click Select Data. In the Select Fitting Data dialog box, select temp as the X Data value and thermex as the Y Data value.The Curve Fitter app creates a default polynomial fit to the data.
Choose a different model type from the fit gallery in the Fit Type section of the Curve Fitter tab.
In the Fit Options pane, try different fit options for your chosen model type.
In the Export section, click Export and select Generate Code.The Curve Fitter app creates a file in the Editor containing MATLAB code to recreate the currently selected fit and its opened plots in your interactive session.
For more information about fitting curves in the Curve Fitter app, see Interactive Curve and Surface Fitting.
You may go through tis for more help https://in.mathworks.com/help/curvefit/curve-fitting.html#:~:text=Interactive%20Curve%20Fitting,-To%20interactively%20fit&text=Load%20some%20data%20at%20the%20MATLAB%C2%AE%20command%20line.&text=Open%20the%20Curve%20Fitter%20app.&text=In%20the%20Curve%20Fitter%20app,as%20the%20Y%20Data%20value.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox 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!