Numpy Loop Through Array Matlab Simulink