%% Customize One Series of Bars
% Create matrix y in which each column is a series of data. Then display the data in a bar graph, specifying an output argument when calling the barh function. In this case, barh returns a vector of three Bar objects. Each object corresponds to a different series.

y = [10 15 20; 30 35 40; 50 55 62];
b = barh(y);

%
% Modify the second series of bars to be green with thick red edges.

b(2).FaceColor = [.2 .6 .5];
b(2).EdgeColor = [.63 .08 .18];
b(2).LineWidth = 2;

% Copyright 2019 The MathWorks, Inc.