Find Eigenvalues without function "eig"
48 次查看(过去 30 天)
显示 更早的评论
I performed this by hand and know that the eigenvalues are 10, -1, and 4. But clearly that's not what I got... Any help would be nice.
回答(2 个)
Paul
2020-10-11
roots(poly(A))
Though I’m sure one could come with an A for which this approach will fail due to numerical accuracy issues. In which case converting A to a syms object as in another answer may be preferred.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!