Borrar filtros
Borrar filtros

Finding 4 connectivity for a matrix

3 visualizaciones (últimos 30 días)
kash
kash el 4 de Ag. de 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

Respuesta aceptada

venkat vasu
venkat vasu el 4 de Ag. de 2012
Editada: Oleg Komarov el 3 de Sept. de 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)

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by