MATLAB: How to see just a couple of datapoint based on a specific criteria

show selected area of matrix

I have a dataset that consists of double where I would like to see those rows where the column 10 is equal to 1
I tried this:
dataset(dataset(:,10)==1)
which is working fine but gives me only the first column. I would like to see the whole row and therefore I tried this:
dataset(:,dataset(:,10)==1))
but that's not working. what am I doing wrong?

Best Answer

So close ...
>> dataset(dataset(:,10)==1,:)