problems with the eigenvalues

2 visualizaciones (últimos 30 días)
Song
Song el 5 de Mayo de 2012
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

Respuestas (1)

bym
bym el 5 de Mayo de 2012
eig returns the eigenvalues already sorted
[vec,val]=eig(rand(8));
diag(val)
  2 comentarios
John D'Errico
John D'Errico el 5 de Mayo de 2012
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 el 5 de Mayo de 2012
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Linear Algebra en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by