For And While Loop Syntax In Matlab