%% Find Objects with Specified Property Values
% Plot nine sine waves with custom colors and line styles.

x = linspace(0,7);
y = ones(length(x),9);
for i = 1:9
    y(:,i) = sin(x-i/5)';
end
plot(x,y)

colororder({'red','green','blue'})
ax = gca;
ax.LineStyleOrder = {'-','--',':'};

%
% Return the solid red line. Then, change the thickness of the line.

h = findobj('Color','red','LineStyle','-')
h.LineWidth = 2;

% Copyright 2020 The MathWorks, Inc.