matlab *.m files to solve the advection equation.
This solves the advection equation with the Lax-Friedrichs method
lax_friedrichs.m
You need the subroutine
f.m
This solves the advection equation with the beam-warming method
beam_warming.m
This shows how to check the
above two methods are converging properly given smooth initial
data.
This shows
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.