t = [0:0.1:2*pi]; a = sin(t); b = cos(t); figure(1); clf; subplot(211); plot(t,a); subplot (212); plot(t,b); figure(2); clf; subplot 211; plot(t,a); subplot 212; plot(t,b);