Curve fitting a power law function a(x^b) + C

7 ビュー (過去 30 日間)
Tom
Tom 2017 年 3 月 10 日
コメント済み: Torsten 2017 年 3 月 13 日
Greetings. I have been trying to fit a power law function through a data set through: p = polyfit(log(x),log(y),1) This gives me the values for coefficient a and b, but I cannot figure out how to get c. Any help or advice would be greatly appreciated. Thanks.

採用された回答

Torsten
Torsten 2017 年 3 月 10 日
Use lsqcurvefit.
Best wishes
Torsten.
  2 件のコメント
Tom
Tom 2017 年 3 月 10 日
Thanks for the prompt response. How exactly would I initialize the equation that I would like to fit? Thanks.
Torsten
Torsten 2017 年 3 月 13 日
fun=@(x,xdata)x(1)*xdata.^x(2)+x(3);
Best wishes
Torsten.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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