how to find roots of 10*5 matrix

1 Ansicht (letzte 30 Tage)
Ali
Ali am 8 Jun. 2020
Kommentiert: Rik am 7 Jul. 2020
To find roots of w is
w=roots(w);
r-roots(w);
which is one better and accurate way??
  2 Kommentare
KSSV
KSSV am 8 Jun. 2020
How you can you find roots of a matrix? roots gives you the roots of a polynomial.
Ali
Ali am 8 Jun. 2020
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 ??

Melden Sie sich an, um zu kommentieren.

Antworten (2)

KSSV
KSSV am 8 Jun. 2020
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 Kommentare
Ali
Ali am 8 Jun. 2020
Thanks a lot
KSSV
KSSV am 8 Jun. 2020
Thanks is accepting the answer.

Melden Sie sich an, um zu kommentieren.


Ali
Ali am 7 Jul. 2020
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 Kommentare
Rik
Rik am 7 Jul. 2020
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 am 7 Jul. 2020
[now reposted as separate question]

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Polynomials finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by