Block-diagonalize matrix based on specific block criteria

5 visualizzazioni (ultimi 30 giorni)
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:

Risposta accettata

Bruno Luong
Bruno Luong il 30 Ago 2023
See symrcm symamd colamd commands and such

Più risposte (0)

Categorie

Scopri di più su Sparse Matrices in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by