A Student's Guide to the Schrödinger Equation

The files on this page allow you to play "what if" games for ten of the figures in the book - that is, by running these files in MATLAB or Octave, you can vary the parameters upon which the figures are based and observe the results.

To use these files, you can either click on the "View" link and then copy and paste the code into an empty MATLAB or Octave script, or you can click on the "Download" link to store the m-file on your computer. When you run each file, one or more menus will pop up to allow you to enter values for several parameters, after which the graphs will be drawn using the data you've input.

And if you want to understand how the code works, you'll find quite a few explanatory comments within the files. This makes the code somewhat difficult to read in plain-text format, but the formatting within MATLAB and Octave should make it a bit easier to separate the commands from the comments.

Interactive Figure Scripts (MATLAB)
Interactive Figure Scripts (Octave)