Mercurial > hg > ltpda
diff m-toolbox/test/utils/test_boxplot.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/test/utils/test_boxplot.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,26 @@ +% +% test case for utils.math.boxplot +% +% Luigi Ferraioli 13-02-2011 +% +% $Id: test_boxplot.m,v 1.1 2011/02/13 21:32:35 luigi Exp $ +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% test data + +aa = randn(10000,1) + 10; +bb = randn(11000,1) + 9; +cc = randn(9000,1) + 11; + +%% plot full data and box +ops = struct('PlotData',true,... + 'ConfLevel',0.95,... + 'XTickLabel',{{'','one','','two','','three',''}}); +utils.math.boxplot(aa,bb,cc,ops) + +%% plot box and data out of confidence +ops = struct('PlotData',false,... + 'ConfLevel',0.95,... + 'XTickLabel',{{'','one','','two','','three',''}}); +utils.math.boxplot(aa,bb,cc,ops) \ No newline at end of file