Block-diagonalization of a matrix

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일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Linear Algebra에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2020년 4월 7일

댓글:

Rik
2021년 4월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by