Sort Eigenvectors & Eigenvalues

Version 1.0.0.0 (468 octets) par Calvin Price
Sort a set of eigenvectors and corresponding eigenvalues
4,3K téléchargements
Mise à jour 25 fév. 2008

Aucune licence

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

Citation pour cette source

Calvin Price (2026). Sort Eigenvectors & Eigenvalues (https://fr.mathworks.com/matlabcentral/fileexchange/18904-sort-eigenvectors-eigenvalues), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2007a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Linear Algebra dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0