필터 지우기
필터 지우기

Finding 4 connectivity for a matrix

조회 수: 3 (최근 30일)
kash
kash 2012년 8월 4일
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에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by