Function to make a 2D histogram

Version 1.3.0.0 (1,4 ko) par Sisi Ma
Make 2D histogram on pairs of (x,y) data
3,1K téléchargements
Mise à jour 7 mars 2013

Afficher la licence

%A Simple function that makes a 2D histgram

% Input: data: two cols, x value; y value
% xrange: range and bins for x value (edges)
% yrange: range and bins for y value (edges)
%Output: Count of a specifice (x,y) bin combination;
% Suggested visualizing tool: I like to use imagesc; bar3 will work fine
% too; have to change axis label though

Example:
data(:,1)=randn(100000,1);
data(:,2)=randn(100000,1);
count=hist2d(data,-1:0.1:1,-1:0.1:1);
imagesc(count);

Citation pour cette source

Sisi Ma (2026). Function to make a 2D histogram (https://fr.mathworks.com/matlabcentral/fileexchange/29709-function-to-make-a-2d-histogram), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2008a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Histograms dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.3.0.0

bug fixed

1.0.0.0