Finding 4 connectivity for a matrix

4 次查看(过去 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

采纳的回答

venkat vasu
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 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by