eig求特征值按原序列输出。
Afficher commentaires plus anciens
大家好
我在使用eig求特征值的过程中 输出的特征值总是按降序排列
比如:
AA=
[ 65.000000000000000 0.158092520328235 0.040613903724436 0.346404717066538 0.028836773244691
0.158092520328235 65.000000000000000 0.033811466588535 0.121786329596663 0.032579308457303
0.040613903724436 0.033811466588535 65.000000000000000 0.043888290966813 0.073910024318205
0.346404717066538 0.121786329596663 0.043888290966813 65.000000000000000 0.029124288784269
0.028836773244691 0.032579308457303 0.073910024318205 0.029124288784269 65.000000000000000]
eig(AA)
ans =
64.651294135868739
64.909844795181684
64.927097385793118
65.056509392189568
65.455254290967005
这里输出的特征值是排序之后的结果
我想得到原序列的该如何操作呢?
期待大佬回复,谢谢
Réponses (1)
新锦江开户网址【gb2032 .com】
le 12 Oct 2022
0 votes
应该没有原序的说法吧?
可能你“原序”就是这样吧。
AA=magic(5);eig(AA)
这个不排序的。(2019a)
如果你的已经排序的话,试试:
AA=magic(5); [~,D]=eig(AA);diag(D)
Catégories
En savoir plus sur 线性代数 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!