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일
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 Exchange에서 Linear 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