how to find roots of 10*5 matrix
3 次查看(过去 30 天)
显示 更早的评论
To find roots of w is
w=roots(w);
r-roots(w);
which is one better and accurate way??
2 个评论
回答(2 个)
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
2020-7-7
2 个评论
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 Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!