How to get equation of polynomial from polyfit?

11 ビュー (過去 30 日間)
Deepansh Bhatia
Deepansh Bhatia 2018 年 4 月 15 日
コメント済み: Deepansh Bhatia 2018 年 4 月 16 日
As the title says, I need to display the equation of a fitted line (not necessarily on the axes). I have the coefficients of the polynomial thanks to polyfit; is there a sophisticated way to construct an equation from those coefficients? Thanks.

採用された回答

Walter Roberson
Walter Roberson 2018 年 4 月 15 日
  3 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 15 日
Yes, it would be a symbolic expression. You could disp() it, or pretty() it.
Deepansh Bhatia
Deepansh Bhatia 2018 年 4 月 16 日
Works, thanks a lot!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by