close loop

2 visualizzazioni (ultimi 30 giorni)
Mohammad Golam Kibria
Mohammad Golam Kibria il 20 Giu 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?

Risposta accettata

Andrei Bobrov
Andrei Bobrov il 20 Giu 2011
B = bwboundaries(I,8,'noholes')

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by