How can I extract the parameters from curve fitting 'fit' function?
134 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
更多回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File 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!