www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyNumberofBinsExample.m
%% Specify Number of Histogram Bins % Copyright 2015 The MathWorks, Inc. %% % Plot a histogram of 1,000 random numbers sorted into 50 % equally spaced bins. x = randn(1000,1); nbins = 50; hist(x,nbins)