Filter löschen
Filter löschen

How can I extract the parameters from curve fitting 'fit' function?

178 Ansichten (letzte 30 Tage)
Zheng
Zheng am 12 Feb. 2013
Beantwortet: TEJAS KARALE am 15 Jun. 2018
load enso;
f = fit(month,pressure,'fourier8')
Here is my code. variable f can be shown on the command window. But anyone knows how can I extract the parameters 'f' from 'fit' function?

Akzeptierte Antwort

Zheng
Zheng am 12 Feb. 2013

Weitere Antworten (1)

TEJAS KARALE
TEJAS KARALE am 15 Jun. 2018
Well, as you explained if you run cfit object in command window, we will get values on screen for extracting these values in vector use command below
coeffvalues(cfit_object)
values from cfit will be extracted as row vector.Now, u can access them with ease.

Kategorien

Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by