Clear Filters
Clear Filters

How to convert polynomial equation into row matrix by a command?

5 views (last 30 days)
We know that eq=- w^3 + 6*w^2 - 8*w + 1 can be write in matlab as A=[-1 6 -8 1] , But there should be a command that directly converts polynomial equation like that
  1 Comment
dpb on 14 Dec 2019
So write one and contribute to FEX???
How general does it need to be to suit your needs?

Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 15 Dec 2019
Symbolic Math Toolbox has the sym2poly function that does this.

More Answers (0)


Find more on Interpolation in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!