How to get equation of polynomial from polyfit?
    11 views (last 30 days)
  
       Show older comments
    
    Deepansh Bhatia
 on 15 Apr 2018
  
    
    
    
    
    Commented: Deepansh Bhatia
 on 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.
0 Comments
Accepted Answer
  Walter Roberson
      
      
 on 15 Apr 2018
        3 Comments
  Walter Roberson
      
      
 on 15 Apr 2018
				Yes, it would be a symbolic expression. You could disp() it, or pretty() it.
More Answers (0)
See Also
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!
