% % epage 325 % % 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. % %----- close all; drawnow; clc; clear; addpath( '../../Code/eda_data' ); addpath( '../../Code/eda_toolbox' ); addpath( '../Chapter1' ); randn('seed',0); tCovR = randn(2,2); tCov = tCovR.' * tCovR; % generate a gaureented positive definite matrix X = mvnrnd( [ 1, 1], tCov, 100 ); % generate some data with the same mean figure; boxplot( X, 'notch', 'on' ); title( 'normal data with equivalent means' ); saveas( gcf, '../../WriteUp/Graphics/Chapter9/prob_9_14_same_means', 'epsc' ); X = mvnrnd( [ 9, 10], tCov, 100 ); % generate some data with different means figure; boxplot( X, 'notch', 'on' ); title( 'normal data with different means' ); saveas( gcf, '../../WriteUp/Graphics/Chapter9/prob_9_14_diff_means', 'epsc' );