%% Upper and Lower Subplots
% Create a figure with two stacked subplots. Plot a sine wave in each one.

subplot(2,1,1);
x = linspace(0,10);
y1 = sin(x);
plot(x,y1)

subplot(2,1,2); 
y2 = sin(5*x);
plot(x,y2)

% Copyright 2015 The MathWorks, Inc.