Finding 4 connectivity for a matrix
1 回表示 (過去 30 日間)
古いコメントを表示
I have a matrix
A =
1 5 9
8 2 3
4 8 3
please tell how to find 4 connectivity for this matrix
0 件のコメント
採用された回答
venkat vasu
2012 年 8 月 4 日
編集済み: Oleg Komarov
2012 年 9 月 3 日
L = bwlabeln(Matrix)
[L, NUM] = bwlabeln(Matrix)
[L, NUM] = bwlabeln(Matrix, conn)
L, containing labels for the connected components in Matix NUM the number of connected value found in Matrix.
Example:
[L, NUM] = bwlabeln(Matrix,4)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!