3d histogram

[tab,I,J]=hist3d(x,y,z,xedges,yedges) calculates 3d histograms with sum of elements

You are now following this Submission

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 10^6 elements.
By: El mehdi Abbou-ou-cherif
Last updated : 24/06/2016 with MATLAB 7.0

Cite As

midi cherif (2026). 3d histogram (https://se.mathworks.com/matlabcentral/fileexchange/57839-3d-histogram), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: 2D Histogram Calculation

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.1

Tested on Matlab 2019

1.0.0.0

added comments