Counting the objects over specified location.
2 次查看(过去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/324064/image.jpeg)
0 个评论
采纳的回答
Image Analyst
2020-6-30
I'd try histogram2(). Make sure you pass in the gridlines as "edges" in the input arguments.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!