How to get equation of polynomial from polyfit?

36 views (last 30 days)
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.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Polynomials in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!