%% Change Area Characteristics After Plotting
% Create matrix Y. Then create an area plot, specifying an output argument when calling the area function. In this case, area returns a vector of three Area objects. Each object corresponds to a different column of Y.

Y = [2 3 4; 6 1 5; 7 4 9];
a = area(Y);

%
% Modify the second area to be green with thick red edges.

a(2).FaceColor = [0.2 0.6 0.5];
a(2).EdgeColor = [0.63 0.08 0.18];
a(2).LineWidth = 2;

% Copyright 2020 The MathWorks, Inc.