Reorder Eigenvalues in Schur factorization (Descending order)

16 vues (au cours des 30 derniers jours)
Jake
Jake le 14 Avr 2020
Réponse apportée : Jake le 14 Avr 2020
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);

Réponse acceptée

Jake
Jake le 14 Avr 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);

Plus de réponses (0)

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by