How to count and plot the number of points in a grid?
25 次查看(过去 30 天)
显示 更早的评论
I have a huge data set of more than 19,00,000 points. By point I meant x and y. I am creating a 20*20 minor grid in my plot. I would like to count the number of points that fall in a single grid cell and plot/print the number (of points) in the grid itself in an another plot. I tried to look at hist3() and histcounts2() functions but, couldn't get a hold of it.
Please find attached the picture of the figure.
Please help. Thanks in advance.
3 个评论
Rik
2021-2-18
Why do you think there might be something wrong? I'm on mobile so I can't run your code, but nothing jumps out at me from your code.
采纳的回答
Just Manuel
2021-2-17
Hehe, being curious and doing the stuff mathworks slaps in your face sometimes pays off ;) (I mean the community treasure hunt)
This brought me across this approach to what you want to do:
Have fun watching the Video ;)
Cheers
Manuel
1 个评论
Just Manuel
2021-3-2
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!