Sort Eigenvectors & Eigenvalues
Keine Lizenz
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
Zitieren als
Calvin Price (2026). Sort Eigenvectors & Eigenvalues (https://de.mathworks.com/matlabcentral/fileexchange/18904-sort-eigenvectors-eigenvalues), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Linear Algebra >
Tags
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 |
