Specify the bar locations along the x-axis
x = 1900:10:2000;
y = [75 91 105 123.5 131 150 179 203 226 249 281.5];
bar(x,y)
Set the width of each bar to 40 percent of the total space available for each bar.
y = [75 91 105 123.5 131 150 179 203 226 249 281.5];
bar(y,0.4)
Display four groups of three bars
y = [2 2 3; 2 5 6; 2 8 9; 2 11 12];
bar(y)
No comments:
Post a Comment