www.gusucode.com > stats 源码程序 matlab案例代码 > stats/SpecifyNumberOfScatterPlotBinsExample.m
%% Specify Number of Scatter Plot Bins % Specify a scalar value as the third input argument to use the same number % of bins in each dimension, or a two-element vector to use a different % number of bins in each dimension. % % Plot a binned scatter plot of random data sorted into 100 bins in each % dimension. X = tall(randn(1e5,1)); Y = tall(randn(1e5,1)); binScatterPlot(X,Y,100) %% % Use 20 bins in the _x_-dimension and continue to use 100 bins in the % _y_-dimension. binScatterPlot(X,Y,[20 100])