% Math 3150-4 Computer Lab - Fernando Guevara Vasquez
%
% plots snapshots of string from Computer Lab 2a


x = linspace(0,1); % 100 points equally spaced between 0,1

figure(1);% create a new figure
clf;      % clears figue
hold on;  % let new plots overlay over previous ones
for t = [0,1/6,1/3,1/2],
 u =  sin(2*pi*x)*cos(2*pi*t);
 plot(x,u,'k');
end;
hold off; % stop letting new plots overlay
