3d histogram

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

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

Cite As

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

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

Inspired by: 2D Histogram Calculation

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.1

Tested on Matlab 2019

1.0.0.0

added comments