problems with the eigenvalues

조회 수: 2 (최근 30일)
Song
Song 2012년 5월 5일
I have computed the eigenvalues of a 8*8 matrix, but I want to obtain the three largest eigenvalue of the matrix. I don't know how to do it. Can you help me with it and give me some suggestions. Thank you in advance! Regards, Song

답변 (1개)

bym
bym 2012년 5월 5일
eig returns the eigenvalues already sorted
[vec,val]=eig(rand(8));
diag(val)
  댓글 수: 2
John D'Errico
John D'Errico 2012년 5월 5일
Actually, there is no certainty that they are sorted. They will be ROUGHLY sorted because of the method used, but the exact order may vary slightly.
Walter Roberson
Walter Roberson 2012년 5월 5일
Right, they are not necessarily sorted, and if you look through old messages you can find complaints about changes in the order. I'm not certain but I seem to recall some people indicating that they got a different order with MATLAB Compiler.

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

카테고리

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