www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/TiledHistogramViewExample.m
%% Tiled Histogram View % Generate random data and plot a bivariate tiled histogram. Display the % empty bins by specifying |ShowEmptyBins| as |'on'|. % Copyright 2015 The MathWorks, Inc. x = 2*randn(1000,1)+2; y = 5*randn(1000,1)+3; h = histogram2(x,y,'DisplayStyle','tile','ShowEmptyBins','on');