How to get equation of polynomial from polyfit?

37 visualizaciones (últimos 30 días)
Deepansh Bhatia
Deepansh Bhatia el 15 de Abr. de 2018
Comentada: Deepansh Bhatia el 16 de Abr. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Polynomials en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by