Links to the code used in the session:
Code1.m
Code2.m
Code3.m
If you want to try running these yourself, then you can download and install the free Octave software as a replacement for Matlab (that we used in the session).