필터 지우기
필터 지우기

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

조회 수: 5 (최근 30일)
Waseem Sajjad
Waseem Sajjad 2019년 12월 14일
답변: Steven Lord 2019년 12월 15일
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
dpb 2019년 12월 14일
So write one and contribute to FEX???
How general does it need to be to suit your needs?

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2019년 12월 15일
Symbolic Math Toolbox has the sym2poly function that does this.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by