2D Histogram
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 (2024). 2D Histogram (https://www.mathworks.com/matlabcentral/fileexchange/14205-2d-histogram), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: 2-Dimensional Histogram
Inspiración para: Fast 2D histogram calculation, createContour
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |