Finding 4 connectivity for a matrix

4 Ansichten (letzte 30 Tage)
kash
kash am 4 Aug. 2012
I have a matrix
A =
1 5 9
8 2 3
4 8 3
please tell how to find 4 connectivity for this matrix

Akzeptierte Antwort

venkat vasu
venkat vasu am 4 Aug. 2012
Bearbeitet: Oleg Komarov am 3 Sep. 2012
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)

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by