Nested While Loop Syntax Matlab Webcam