Guest User

Untitled

a guest
Mar 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. import numpy as np
  2. A = np.array([[0, 0, 3],[0, 4, 2],[0, 7, 0],[0, 0, 0]])
  3. for row in range(np.size(A,1)):
  4. if A[:,row].any():
  5. xMin = row
  6. break
  7. print(xMin)
Add Comment
Please, Sign In to add comment