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