The code supplied here is crude, and far from optimized. But it does work,
and it is simple enough to be understandable to mathematicians with minimal
exposure to Matlab.
Variations/improvements may be added here later.
Grab these four files, read the first one, crank up Matlab and have fun.
(This is http://www.spelman.edu/~colm/matlabwav.html, click here to return to main page.)