next up previous contents
Next: 2.1.3.3 Plots with error Up: 2.1.3 Other 2-D plots Previous: 2.1.3.1 Double y-axis plots   Contents

2.1.3.2 Histograms

Here is a short example of plotting histograms.
% Histogram plot
clear all; close all;
x = -3:.2:3; 
y = randn(1000,1); % Generate some random (Gaussian) data
hist(y,x)


Gus Hart 2005-01-28