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

조회 수: 134 (최근 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 CenterFile Exchange에서 Get 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