% script: plotMarchSoln8.m
% description: solves exercise0 of NumAnal Seminar 2016

 % programmer: t. shores
% last rev: 3/29/16

T = 6
numProfiles = 8 + 2
x  = linspace(0, pi, 64);
t  =  linspace(0, T, numProfiles);
u = zeros(length(x), length(t));
for ii = 1:length(x)
  for jj = 1:length(t)
    u(ii, jj) = marchSoln8(x(ii), t(jj));
  end
end
hold on
for jj = 1:length(t)
  pause(1);
  plot(x(1: end), u( :, jj));
end