how to find roots of 10*5 matrix

조회 수: 4 (최근 30일)
Ali
Ali 2020년 6월 8일
댓글: Rik 2020년 7월 7일
To find roots of w is
w=roots(w);
r-roots(w);
which is one better and accurate way??
  댓글 수: 2
KSSV
KSSV 2020년 6월 8일
How you can you find roots of a matrix? roots gives you the roots of a polynomial.
Ali
Ali 2020년 6월 8일
yes I make matrix from coeffients of polynomial equation.and find roots ??
coeffients are A B C D E and values of A B C D E are almost 10.
this make matrix of 10*5.
so how to find roots of this ??

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

답변 (2개)

KSSV
KSSV 2020년 6월 8일
Let A be your 10*5 matrix. Where the coefficients are in rows
[m,n] = size(A) ;
r = zeros(m,n-1) ;
for i = 1:m
r(i,:) = roots(A(i,:)) ;
end
  댓글 수: 2
Ali
Ali 2020년 6월 8일
Thanks a lot
KSSV
KSSV 2020년 6월 8일
Thanks is accepting the answer.

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


Ali
Ali 2020년 7월 7일
This program is to find route for single value of t . I want to find routes for multiple values of t..How we will for loop or any other command??
  댓글 수: 2
Rik
Rik 2020년 7월 7일
You posted this as an answer, even though it isn't an answer. You also posted code as an image. Are you expecting others to type your code from the image?
Accept the answer by KSSV, post this as a comment, use the edit tools to paste the code as code, and then delete this answer.
Rik
Rik 2020년 7월 7일
[now reposted as separate question]

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

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by