% % An extension of example 9.2 % This illustrates the 1-D histogram using relative frequency and frequency. % % Written by: % -- % John L. Weatherwax 2005-08-14 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- close all; drawnow; rehash; clc; % Generate some normal data. X = mvnrnd( 1, 1, 400, 1 ); figure; qqplot( X ); saveas( gcf, ['../../WriteUp/Graphics/Chapter9/prob_9_23_normal'], 'epsc' ); % Generate some exponential data. X = exprnd(1,400,1); figure; qqplot( X ); saveas( gcf, ['../../WriteUp/Graphics/Chapter9/prob_9_23_exp'], 'epsc' );