Matlab tutorial R2008a (textbook and accompanying example M file)