Cpp While Loop Syntax In Matlab