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 Center および File ExchangeLinear Algebra についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by