%% 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)      
