Block-diagonalization of a matrix

9 次查看(过去 30 天)
Rodolphe Momier
Rodolphe Momier 2020-4-7
评论: Rik 2021-4-13
Hello everyone,
It is possible to block-diagonalize a matrix in Matlab?
I have a matrix composed of 1x1, 2x2 and 3x3 blocks and I would like to obtain the eigenvalues and eigenvectors sorted according to the block they correspond to.
When I use the eig command, i obtain the eigenvalues sorted in ascending order.
Thanks is advance.
  1 个评论
Rik
Rik 2021-4-13
Here as well: what is unclear about this question? Instead of flagging, you could also edit your question or comment.

请先登录,再进行评论。

回答(1 个)

Christine Tobler
Christine Tobler 2020-4-7
There is no direct function to do this. The best is probably to write a function that does a loop through the different blocks and calls eig on each block separately.

类别

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