This sample code is in Mathematica, which is a terrible language to use for these projects — I used it out of habit. More appropriate languages are Python, MATLAB, C++, Fortran… and most students who have done these projects have used one of these (Python has been most popular).
Even if you don’t know Mathematica, by scanning through the pdf’s posted here you can see the sort of output you should be getting (in light typeface) and get some ideas from the code (in boldface).
If you have Mathematica installed, you should be able to download the .nb files and run them.
Note added 11/1/21: The links below are broken. If you really want this Mathematica code (you should use Python instead!) please email me at email@example.com.