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

187 ビュー (過去 30 日間)
Zheng
Zheng 2013 年 2 月 12 日
回答済み: TEJAS KARALE 2018 年 6 月 15 日
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?

採用された回答

Zheng
Zheng 2013 年 2 月 12 日

その他の回答 (1 件)

TEJAS KARALE
TEJAS KARALE 2018 年 6 月 15 日
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.

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by