x = linspace(0,10);
y1 = sin(x);
y2 = sin(5*x);
a=subplot(2,1,1);
b=subplot(2,1,2);
subplot(a);
plot(y1);
subplot(b);
plot(y1);
x = linspace(0,10);
y1 = sin(x);
y2 = sin(5*x);
a=subplot(2,1,1);
b=subplot(2,1,2);
subplot(a);
plot(y1);
subplot(b);
plot(y1);