Numpy Loop Through Array Matlab Tutorialspoint