matlab *.m files to solve the advection equation.
This solves the advection equation with the Lax-Friedrichs method
You need the subroutine
This solves the advection equation with the beam-warming method
This shows how to check the
above two methods are converging properly given smooth initial
how to make the figures I gave out in class.
Be careful! The initial data is contained in f.m but you still
have to edit the file where the boundary conditions are given.