作者ReiFu21 (ReiFu)
看板MATLAB
标题[讨论] 如何画两种颜色的errorbar
时间Tue Dec 4 10:32:54 2012
我想要画两种颜色的errorbar
也就是这个
GG=[2 6 5 1 3 5 4 0 1
5 1 2 3 5 6 4 5 1];
x = 1:length(GG);
y = mean(GG);
e = std(GG);
zero=zeros(1,length(GG));
h = figure; errorbar(x,y,zero,e,'linestyle','none');
hold on; bar(x, y'); hold off;
还有这一个
GG=[2 6 5 1 3 5 4 0 1
5 1 2 3 5 6 4 5 1];
HH=[1 3 5 2 6 4 1 5 1
2 6 1 1 5 6 1 2 3];
SS=[mean(GG);mean(HH)];
x=1:length(GG);
g = figure;
bar(x, SS');
的合体
视情况还要增加到三种颜色 四种颜色 所以希望有简单一点的写法
请问该怎麽做呢?? 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.244.170.68
※ 编辑: ReiFu21 来自: 60.244.170.68 (12/04 10:36)