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);

 Akzeptierte Antwort

Jake
Jake am 14 Apr. 2020
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);

Weitere Antworten (0)

Kategorien

Mehr zu Linear Algebra finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 14 Apr. 2020

Beantwortet:

am 14 Apr. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by