Counting the objects over specified location.

조회 수: 1 (최근 30일)
sagun subedi
sagun subedi 2020년 6월 29일
댓글: sagun subedi 2020년 6월 30일
I have a network and this network is divided into grid. Network consits of random nodes. Now how do i calculate the number of nodes (red diamond) within this grid? First each Grid should be given an appropriate name. If Grid(1) is input then output should be 3 and so on.

채택된 답변

Image Analyst
Image Analyst 2020년 6월 30일
I'd try histogram2(). Make sure you pass in the gridlines as "edges" in the input arguments.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 WSNs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by