While Loop Through Array Matlab Compiler Toolbox