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 comentario

Bruno Luong
Bruno Luong el 30 de Ag. de 2023
Editada: Bruno Luong el 30 de Ag. de 2023
And the "specific block criteria" is exactly what?

Iniciar sesión para comentar.

 Respuesta aceptada

Bruno Luong
Bruno Luong el 30 de Ag. de 2023
See symrcm symamd colamd commands and such

Más respuestas (0)

Categorías

Más información sobre Sparse Matrices en Centro de ayuda y File Exchange.

Productos

Versión

R2021b

Preguntada:

el 30 de Ag. de 2023

Comentada:

el 30 de Ag. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by