%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  PHYS 210  Fall 2009
%
%  Homework 4
%  Problem 1
%
%  Instructor supplied driver for wave.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Turn off the paging of standard output so that messages appear
% immediately on the screen instead of being buffered.
more off;

% Call student-supplied routine to compute approximate solution
% of wave equation using the following parameters.
tmax = 2.5;
level = 6;
lambda = 0.5;
al = 1.0;
x0l = 0.45;
deltal = 0.05;
ar = 0.5;
x0r = 0.55;
deltar = 0.1;

fprintf('Running wave at level %d\n',level);
[x, t, u] = wave(tmax, level, lambda, al, x0l, deltal, ar, x0r, deltar);

xvsout('waveout',t,x,u);
