Skip to main content
deleted 2 characters in body
Source Link
jwm
  • 5.1k
  • 12
  • 55
  • 87

Using the bool operation is equivalent to that logical one in Matlab:

B = A[idx.astype(bool),:]

Using the bool operation is equivalent to that logical one in Matlab:

B = A[idx.astype(bool),:]

Using the bool operation is equivalent to that logical one in Matlab:

B = A[idx.astype(bool)]
Source Link
jwm
  • 5.1k
  • 12
  • 55
  • 87

Using the bool operation is equivalent to that logical one in Matlab:

B = A[idx.astype(bool),:]