Ting,
I based my code on the book "Applied numerical methods for engineers using MATLAB and C", by Robert J. Schilling and Sandra L. Harris. ISBN: 0-534-37014-4.
It has a very nice chapter on finite differences, they solve a heat transfer problem, but it's the same kind that of the wave equation I solve in this program.
Comment only