您的位置:首页 > 其它

boxplot

2015-10-25 02:50 281 查看


x1 = rand(20,6);
x2 = .5+rand(20,6);
x3 = randn(20,6);

x = [x1;x2;x3]; x = x(:);
g1 = [ones(size(x1)); 2*ones(size(x2)); 3*ones(size(x3))]; g1 = g1(:);
g2 = repmat(1:6,60,1); g2 = g2(:);

boxplot(x, {g2,g1},'notch','on', 'colorgroup',g1, 'factorgap',5, 'factorseparator',1)


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: