% tbounce_fcn  Driver script for bounce_fcn [PHYS210-HW3]

% Note:  I've cut and pasted the function header into this comment 
% block so that I/you can be reminded what the argument sequence
% is without referring to the source file for bounce.
%
% function nbounce = bounce_fcn(tmax, deltat, kappa, vx0, ...
%       plotenable, pausesecs, avienable, avifilename)
% 
% The following  function call produces the same result---i.e.
% an identical simulation and animation---that running bounce does.  
% Only the name of the AVI file produced is different.

% Note that there's no need to give the variable to which we 
% assign the return value from bounce_fcn (nb) the same name 
% that appears in the function header (nbounce)

nb = bounce_fcn(3.0, 0.01, 0.98, 0.5, 1, 0.01, 1, 'tbounce_fcn.avi');
