Running the canned example, or any simple call to rot_3d_model(), reportedly results in a graphics error in the latest matlab release: Error using matlab.graphics.primitive.Patch/set Invalid or deleted object