% This M-file plots single curves in two panels

% change defaults for plotting
set(0,'DefaultAxesFontSize',16)

% set up variable vectors
load data.dat
t = data(:,1);
x = data(:,2);
y = data(:,3);

% plot top panel
subplot(2,1,1);
plot(t,x,'black');
axis([0 20 0 5]);
title('Sample plot');
xlabel('t');
ylabel('x');

% plot bottom panel
subplot(2,1,2);
plot(t,y,'black');
axis([0 20 0 5]);
xlabel('t');
ylabel('y');

