MATLAB Answers

Counting the objects over specified location.

4 views (last 30 days)
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.


Sign in to comment.

Accepted Answer

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

More Answers (0)

Translated by