how to find roots of 10*5 matrix

1 次查看(过去 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

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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by