Block-diagonalize matrix based on specific block criteria

I would like to re-arrange a symmetric logical matrix to form "blocks" along the diangonal. Here, I define these blocks based on row/colums that share ones.
To illustrate visually, here is the inital symmetric logical matrix:
And I would like to find the permutations that give me this:

댓글 수: 1

Bruno Luong
Bruno Luong 2023년 8월 30일
편집: Bruno Luong 2023년 8월 30일
And the "specific block criteria" is exactly what?

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

 채택된 답변

Bruno Luong
Bruno Luong 2023년 8월 30일

0 개 추천

See symrcm symamd colamd commands and such

추가 답변 (0개)

카테고리

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

제품

릴리스

R2021b

질문:

2023년 8월 30일

댓글:

2023년 8월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by