标签:
matlab 将多个盒图放在一张图上
x1 = normrnd(5,1,100,1)‘;
x2 = normrnd(6,1,200,1)‘;
X = [x1 x2];
G = [zeros(size(x1)) ones(size(x2))];
boxplot(X, G); %如果组别非常多,建议用compact格式: boxplot(X, G,‘plotstyle‘,‘compact‘);
标签:
原文地址:http://www.cnblogs.com/baiting/p/5780952.html