Choose the ideal number of bins in hist3
16 views (last 30 days)
Show older comments
Dear all,
I want to plot a hist3 plot but i'm not sure which is the ideal number of bins that I would need to define.
I have two variables with 116640 x 1 size and I'm using the following line of code:
hist3([Var1, Var2],[200 200],'CDataMode','auto','EdgeColor','none');
In this case I'm using [200 x 200] number of bins but as I want to compare these results with others with different variable sizes I'm not sure how to get the ideal number of bins based on the matrix sizes.
Do you have any idea how to do this?
Thank you in advance
5 Comments
Jan
on 3 Dec 2022
What about a 2D interpolation with the smaller number of bins? This will keep the highest possible resolution for a 1-by-1 comparison.
Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!