Find Eigenvalues without function "eig"

조회 수: 48 (최근 30일)
Jaycie Bishop
Jaycie Bishop 2020년 10월 11일
편집: KSSV 2020년 10월 12일
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.
  댓글 수: 1
Bruno Luong
Bruno Luong 2020년 10월 11일
correct value of x2 is 13 (not 7)

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

답변 (2개)

KSSV
KSSV 2020년 10월 11일
편집: KSSV 2020년 10월 12일
syms x
A = [10 0 0; 1 -3 -7 ; 0 2 6] ;
p = det(A-eye(3)*x) % this is the characteristic equation
val = solve(p) % solve this for roots
The polynomial equation, you get is:
poly =
Using roots:
p = [-1 13 -26 -40] ;
val = roots(p)

Paul
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.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by