主题: [MATLAB图像处理] bar 柱状图
查看单个帖子
旧 2009-12-01, 00:23   #6
cooleggyh
初级会员
 
注册日期: 2009-12-01
年龄: 35
帖子: 6
声望力: 0
cooleggyh 正向着好的方向发展
默认 回复: bar 柱状图

%Use x and x+1 as x-coordinates and use different colors to differentiate the bars
x=[1,2,3,4];y1=[1,2,3,4];y2=[1,2,3,4];
bar(x,y1,'b');
hold
bar(x+1,y2,'r');
cooleggyh 当前离线   回复时引用此帖