I want to subset rows from matrix for which the value in third column is greater than zero. For example, I have a matrix :
test =
1 2 3
4 5 0
4 4 1
4 4 0
Now I want to subset it so that I have
subset =
1 2 3
4 4 1
Any quick suggestion on how I can do this in matlab?