As you mentioned that the matrix having size 146652x1, which means it has 1 column. Prefer logical conditional statement.
It's return logical data 1, where the value greater than 1, else 0.
If you mat data having multiple columns and rows, force all elements greater than 2 to be Zero
results=mat_data>1 & mat_data
If you wish to check individual cloumn data