Zoe Boekelheide Scientific Computing Project Modeling breaking waves May 2, 2003 How to use makewave.m and timestep3.m: Open Matlab and set your directory to the directory where you have the files. Type "makewave( x )", where x can be a number between 0 and infinity (but it really should be between 0 and about 3 in order to be physically realistic). x corresponds to the value for 2*pi*a, or 2*pi*(amplitude)/(wavelength). If x is 0.2, 0.4, 0.8, 1.6, or 2.4, makewave.m will pick the correct timestep h to give you a nice picture. Otherwise, makewave.m will extrapolate a (hopefully) reasonable value of h to use. When makewave runs, it will return to you the value for h that it chose, and the value for surfability for that wave. It will also create a figure with 10 subplots, showing y(x) for every fourth timestep. makewave calls timestep3, so you need it, but you don't ever actually have to use it yourself. makewave has all the information in it you would want to change, such as the number of points on the surface (default 60), the number of time steps (default 40), the initial y(x) and Phi(y,x), and the commands for how many and which timesteps to plot.