2D Histogram

Calculates and draws the 3D histogram of 2 Dimensional input data
8,8K Descargas
Actualizado 9 mar 2007

Sin licencia

function H = hist2d(D,Xn,Yn,[Xlo Xhi],[Ylo Yhi])

Calculates and draws the 3D histogram of 2 Dimensional input data D.

Counts number of points in the bins defined by
X = linspace(Xlo,Xhi,Xn) and
Y = linspace(Ylo,Yhi,Yn)

D must be a 2 column or 2 row matrix or an array of complex numbers

[Xlo Xhi],[Ylo Yhi] are optional and default to the min and max of
the input data
Xn and Yn are optional and default to 20

Example:
hist2d([randn(1,10000); randn(1,10000)])

Really just a copy of 2D Histogram, by Rey Patlolla, but with default arguments, optionally complex input and draws a 3D histogram.

Citar como

Murphy O'Brien (2026). 2D Histogram (https://la.mathworks.com/matlabcentral/fileexchange/14205-2d-histogram), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2006a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Histograms en Help Center y MATLAB Answers.
Agradecimientos

Inspirado por: 2-Dimensional Histogram

Inspiración para: Fast 2D histogram calculation, createContour

Versión Publicado Notas de la versión
1.0.0.0