%
% copy and paste the following lines onto the Matlab command window
%
x = random('Normal',0,1,1000,1);
y = random('Normal',0,1,1000,1);
k = convhull(x,y);
x1 = x(k);
y1 = y(k);
clf;
hold on;
plot(x,y,'b.');
plot(x1,y1,'r-');

