Block-diagonalize matrix based on specific block criteria

5 ビュー (過去 30 日間)
Ludovic Tenorio
Ludovic Tenorio 2023 年 8 月 30 日
コメント済み: Ludovic Tenorio 2023 年 8 月 30 日
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 日
See symrcm symamd colamd commands and such
  1 件のコメント
Ludovic Tenorio
Ludovic Tenorio 2023 年 8 月 30 日
symrcm seems to have done the job, thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSparse Matrices についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by