Eigenvalues of a 2000x2000 matrix

조회 수: 17 (최근 30일)
Elias Schneider
Elias Schneider 2018년 3월 15일
답변: Christine Tobler 2018년 3월 15일
Hi, I have a 2000x2000 matrix and want to calculate the eigenvalues of it. The matrix is symmetric and real so the eigenvalues should be real, too. Unfortunately the function eig gives imaginary eigenvalues. Do you know a better way to calculate the eigenvectors and eigenvalues for such a problem?

답변 (1개)

Christine Tobler
Christine Tobler 2018년 3월 15일
EIG chooses between the symmetric and non-symmetric solver based on whether the matrix is exactly symmetric (A == A'). I'm guessing your matrix is slightly non-symmetric; by calling eig( (A+A')/2 ), you should get real eigenvalues instead of complex ones.

카테고리

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