While Loop And For Loop In Matlab Syntax Error