Filter löschen
Filter löschen

How to get equation of polynomial from polyfit?

24 Ansichten (letzte 30 Tage)
Deepansh Bhatia
Deepansh Bhatia am 15 Apr. 2018
Kommentiert: Deepansh Bhatia am 16 Apr. 2018
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Apr. 2018
  3 Kommentare
Walter Roberson
Walter Roberson am 15 Apr. 2018
Yes, it would be a symbolic expression. You could disp() it, or pretty() it.
Deepansh Bhatia
Deepansh Bhatia am 16 Apr. 2018
Works, thanks a lot!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Polynomials finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by