clear all; close all;
n = 1;
s = .01;
x = 0; xx=x;
y = 0; yy=y;
hf = figure(1);
h = plot(x,y,'bx');
set(h,'MarkerSize',12,'LineWidth',2);
axis([-5 5 -0.5 0.5])
set(gca,'PlotBoxAspectRatio',[10 1 2],'PlotBoxAspectRatioMode','manual');
set(gca,'XTickMode','manual','YTickMode','manual','XTick',[0],...
    'YTick',[0]);
set(gca,'XTickLabelMode','manual','YTickLabelMode','manual','XTickLabel',[],...
    'YTickLabel',[]);
grid on
k=1;
M(k) = getframe;
while( abs(x)<5 & abs(y)<0.5);
   x = x + s*randn(n,1); xx(end+1)=x;
   y = y + s*randn(n,1); yy(end+1)=y;
   set(h,'XData',x,'YData',y);
   k=k+1;
   M(k) = getframe;
end
figure(2);
plot(xx,yy,'b-');
axis([-5 5 -0.5 0.5])
set(gca,'PlotBoxAspectRatio',[10 1 2],'PlotBoxAspectRatioMode','manual');
set(gca,'XTickMode','manual','YTickMode','manual','XTick',[0],...
    'YTick',[0]);
set(gca,'XTickLabelMode','manual','YTickLabelMode','manual','XTickLabel',[],...
    'YTickLabel',[]);
grid on