close loop

1 visualización (últimos 30 días)
Mohammad Golam Kibria
Mohammad Golam Kibria el 20 de Jun. de 2011
I =
0 0 0 0 0 0 0
0 1 1 0 1 1 0
1 0 1 0 1 0 1
0 1 1 0 1 0 1
0 0 0 0 1 1 0
0 0 0 0 0 0 0
I need how many closed regions in the matrix. Here obviously two.Is there any one to help?

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 20 de Jun. de 2011
B = bwboundaries(I,8,'noholes')

Más respuestas (0)

Categorías

Más información sobre Elementary Math 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