image thumbnail

3d histogram

version (1.72 KB) by midi cherif
[tab,I,J]=hist3d(x,y,z,xedges,yedges) calculates 3d histograms with sum of elements


Updated 30 Jun 2016

View License

Instead of Matlab function hist3 that calculates 2d histograms giving the number of elements, hist3d calculates the sum of weights given in the third vector z. The algorithm was written to be fast and stable. An example is given with more than 6*10^3 elements.
By: El mehdi Abbou-ou-cherif
Last updated : 24/06/2016 with MATLAB 7.0

Cite As

midi cherif (2021). 3d histogram (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: 2D Histogram Calculation

Community Treasure Hunt

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

Start Hunting!