% % Problem Epage 200/201 % Example 5.4 Epage 133 % % Written by: % -- % John L. Weatherwax 2008-02-20 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- clear all; close all; clc; % generate our random variables: N_SAMPS=1e2; %x = normrnd(0,sqrt(2),1,N_SAMPS); %y = normrnd(0,sqrt(1),1,N_SAMPS); x = normrnd(5,sqrt(1),1,N_SAMPS); y = normrnd(0,sqrt(1),1,N_SAMPS); % get the order statistics: xs = sort(x); ys = sort(y); % construct the q-q plot: figure; plot( xs, ys, 'x' ); grid on;