% Example2_2 - random numbers
rng(129);  % initialize random number seed
eps = randn(1,36);
figure(1); clf; 
plot(eps,'-+', 'linewidth', 1)
hold on
plot( [0 40], [0 0], 'k--', 'linewidth', 1 )
xlabel('i')
ylabel('Random number')
hold off

fullfile(pwd, 'Figure2_1.tif')
% print the 600 dpi figure to tiff format
fig=figure(1);
print(fig,fullfile(pwd, 'Figure2_1.tif'),'-dtiff','-r600')

