Effacer les filtres
Effacer les filtres

How to get equation of polynomial from polyfit?

24 vues (au cours des 30 derniers jours)
Deepansh Bhatia
Deepansh Bhatia le 15 Avr 2018
Commenté : Deepansh Bhatia le 16 Avr 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.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Polynomials dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by