How do I get A and B fitting coefficients after fitting a power law curve using fit function

1 回表示 (過去 30 日間)
Syeda Tabassum
Syeda Tabassum 2015 年 11 月 24 日
回答済み: Torsten 2015 年 11 月 25 日
Hi I am trying to extract fitting coefficient from f.
x=[100,200,300,400,500,600,700,800]';
y=[5, 14, 16, 17, 18,19, 21, 22]';
f=fit(x,y, 'power1');
f is something like this:
f =
General model Power1:
f(x) = a*x^b
Coefficients (with 95% confidence bounds):
a = 0.9937 (-0.2434, 2.231)
b = 0.467 (0.268, 0.666)
I need to extract this a and b value. How can I get that?
Thanks.

回答 (1 件)

Torsten
Torsten 2015 年 11 月 25 日

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by