How to get equation of polynomial from polyfit?

36 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Walter Roberson
Walter Roberson il 15 Apr 2018
  3 Commenti
Walter Roberson
Walter Roberson il 15 Apr 2018
Yes, it would be a symbolic expression. You could disp() it, or pretty() it.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Polynomials in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by