CS211 MATLAB Polygon Transformation Exercise