How to convert polynomial equation into row matrix by a command?
13 ビュー (過去 30 日間)
古いコメントを表示
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
A=equationToRowmatrix(eq)
1 件のコメント
dpb
2019 年 12 月 14 日
So write one and contribute to FEX???
How general does it need to be to suit your needs?
採用された回答
Steven Lord
2019 年 12 月 15 日
Symbolic Math Toolbox has the sym2poly function that does this.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Polynomials についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!