Sample code from my Mathematical Problem Solving with MATLAB course; Spring 2012.