www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyColorForHorizontalBarGraphExample.m
%% Specify Color for Horizontal Bar Graph % Create a horizontal bar graph and change the color of the bars to red. % Copyright 2015 The MathWorks, Inc. y = [57,91,105,123,131,150,... 170,203,226.5,249,281.4]; figure barh(y,'r')