%% Customize One Series in Grouped or Stacked Bars
% Create matrix y, where each column is a series of data. Call the bar function to display the data in a bar graph, and specify an output argument. The output is a vector of three Bar objects, where each object corresponds to a different series. This is true whether the bars are grouped or stacked.

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

%
% Make the third series of bars green.

b(3).FaceColor = [.2 .6 .5];

%
% Copyright 2019 The MathWorks, Inc.