Sort Eigenvectors & Eigenvalues

版本 1.0.0.0 (468 字节) 作者: Calvin Price
Sort a set of eigenvectors and corresponding eigenvalues
4.3K 次下载
更新时间 2008/2/25

无许可证

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

引用格式

Calvin Price (2026). Sort Eigenvectors & Eigenvalues (https://ww2.mathworks.cn/matlabcentral/fileexchange/18904-sort-eigenvectors-eigenvalues), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Algebra 的更多信息
版本 已发布 发行说明
1.0.0.0