MATLAB Answers

Sort eigenvectors matrix.

8 views (last 30 days)
Rodolphe Momier
Rodolphe Momier on 26 Mar 2020
Answered: Christine Tobler on 26 Mar 2020
Hello,
I have a block diagonal matrix called G.
I have diagonalized this matrix using eig and obtained the eigenvalues:
And also the eigenvectors:
Is there a way to sort the eigenvectors matrix so that the eigenvectors correspond to their respective block ? And also sort the eigenvalues matrix the same way as the eigenvectors.
Thanks in advance,
RM

  0 Comments

Sign in to comment.

Answers (1)

Christine Tobler
Christine Tobler on 26 Mar 2020
Take a look at rsf2csf. For a block-diagonal matrix with 1-by-1 and 2-by-2 blocks, it computes a diagonal eigenvalue matrix and corresponding eigenvector matrix, without rearranging the rows and columns.

  0 Comments

Sign in to comment.


Translated by