Reorder Eigenvalues in Schur factorization (Descending order)

How can I rearrange the eigenvalues in descending order using ordschur?
I've tried the example below, but unable to rearrange the diagonal of matrix T in descending order.
H = magic(10);
[U,T]=schur(H);
[~, select] = sort(ordeig(T));
[US, TS] = ordschur(U, T, select);

 採用された回答

Jake
Jake 2020 年 4 月 14 日

0 投票

Upon searching and trials, this worked.
H = magic(10);
[U,T]=schur(H);
[~, i] = sort(ordeig(T));
[~, j] = sort(i);
[US, TS] = ordschur(U, T, j);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLinear Algebra についてさらに検索

タグ

質問済み:

2020 年 4 月 14 日

回答済み:

2020 年 4 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by