Python Numpy Index Array Matlab Simulink