close loop

조회 수: 2 (최근 30일)
Mohammad Golam Kibria
Mohammad Golam Kibria 2011년 6월 20일
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?

채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 6월 20일
B = bwboundaries(I,8,'noholes')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by