%% Change Line Appearance After Plotting
% Create a log-linear plot containing two lines, and return the line objects in the variable slg.

x = 1:100;
y1 = x.^2;
y2 = x.^3;
slg = semilogy(x,y1,x,y2);

%
% Change the width of the first line to 3, and change the color of the second line to purple.

slg(1).LineWidth = 3;
slg(2).Color = [0.4 0 1];

% Copyright 2020 The MathWorks, Inc.