Matlab How Can I Write A Function As A Function File That Prints Out A Polynomia

Matlab

How can I write a function (as a function file) that prints out a polynomial in the correct form ( ie y(x) = 3x^3 + 5x^2 + …).?

If I use p = [ … …]  and the output window shows

ans = 

       … … ….

and so, what should I do if I want to show the polynomials in correct form ? 

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW