Sort eigenvectors matrix.

조회 수: 2 (최근 30일)
Rodolphe Momier
Rodolphe Momier 2020년 3월 26일
댓글: Rik 2021년 4월 13일
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
  댓글 수: 1
Rik
Rik 2021년 4월 13일
Instead of flagging it as unclear, you could also edit your question to clarify it, or post a comment on the answer detailing why that doesn't solve your problem.

댓글을 달려면 로그인하십시오.

답변 (1개)

Christine Tobler
Christine Tobler 2020년 3월 26일
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.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by