Fit and Polyfit (LAR vs. Least squares)

83 ビュー (過去 30 日間)
sks
sks 2013 年 7 月 4 日
I am trying to better understand the difference between fit and polyfit. Am I right to think that fit for polynomials still uses the least absolute residual robust (LAR) method rather than the least squares method (polyfit)?

採用された回答

Guru
Guru 2013 年 7 月 4 日
You can find out by asking for the output argument:
[fitobject,gof,output] = fit(x,y,fitType)
output.algorithm
But the real difference between fit and polyfit are the options that you can choose as well as polyfit is strictly limited to polynomials and uses the least squares method.
  1 件のコメント
sks
sks 2013 年 7 月 4 日
Thank you for the quick answer.

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

その他の回答 (0 件)

カテゴリ

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