Sort Eigenvectors & Eigenvalues

Sort a set of eigenvectors and corresponding eigenvalues
4,3K download
Aggiornato 25 feb 2008

Nessuna licenza

This function takes in two matrices P and D, presumably the output
from Matlab's eig function, and then sorts the columns of P to
match the sorted columns of D (going from largest to smallest)

EXAMPLE:

D =
-90 0 0
0 -30 0
0 0 -60
P =
1 2 3
1 2 3
1 2 3

[P,D]=sortem(P,D)
P =
2 3 1
2 3 1
2 3 1
D =
-30 0 0
0 -60 0
0 0 -90

Cita come

Calvin Price (2025). Sort Eigenvectors & Eigenvalues (https://it.mathworks.com/matlabcentral/fileexchange/18904-sort-eigenvectors-eigenvalues), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2007a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Linear Algebra in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0