hist2d(D,Xn,Yn,Xrange,Yrange)
Version 1.1.0.0 (1.42 KB) by
Yang Hu
Optimized 2-dimensional Histogram for Complex Data
For an complex data set D, histogram it by range in Xrange and Yrange, each with grid number Xn and Yn.
Cite As
Yang Hu (2025). hist2d(D,Xn,Yn,Xrange,Yrange) (https://www.mathworks.com/matlabcentral/fileexchange/48376-hist2d-d-xn-yn-xrange-yrange), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Histograms in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Fast 2D histogram calculation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.