%rand('normal')%DT
disp('Example 1: machine-generated normal randoms...')
%e=rand(100,1);
e=randn(100,1);%DT
[nq,eq]=qq_normal(e);
plot(nq,eq,'o');pause
plot(nq,eq,'o', [-3,3],[-3,3],'-'); grid
title('Q-Q Analysis of Machine Random Numbers')
xlabel('Theoretical Normal N(0,1) Quantile')
ylabel('Sorted data values (user units)'); pause
disp('Example 2: 10% outliers added to 1st example...')
%e=[e;10*rand(10,1)];
e=[e;10*randn(10,1)];%DT
[nq,eq]=qq_normal(e);
plot(nq,eq,'o', [-3,3],[-3,3],'-'); grid
title('Example of Outliers')
xlabel('Theoretical Normal N(0,1) Quantile')
ylabel('Sorted data values (user units)')
