%% Plot Horizontal Line in Specific Axes
% Create subplots in a 1-by-2 grid and plot data in each.  Then, add a horizontal line to the first subplot.

ax1 = subplot(1,2,1);
x = -pi/2:pi/60:pi/2;
y1 = tan(sin(x)) + cos(sin(x)); 
plot(ax1,x,y1)

ax2 = subplot(1,2,2);
x = -pi/2:pi/60:pi/2;
y2 = tan(cos(x)) + exp(x);
plot(ax2,x,y2)

yline(ax1,1.0);

%
% Copyright 2018 The MathWorks, Inc.