N-dimensional histogram

Compute n-dimensional histogram
Updated 26 Aug 2011

View License

Like histc but for n-dimension.

Unlike the other nd histogram http://www.mathworks.com/matlabcentral/fileexchange/3957 beside counting, this function returns also the location of points in the bins. Coded entirely in Matlab (no mex required). Speed slightly slower (but quite decent).

User can data and/or function for specific need of accumulator on each patch

Cite As

Bruno Luong (2024). N-dimensional histogram (https://www.mathworks.com/matlabcentral/fileexchange/23897-n-dimensional-histogram), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Histograms in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

User specific function for accumulator

New feature: accumulate user's data rather than 1