Asked by Locks
on 24 Apr 2013

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?

*No products are associated with this question.*

Answer by the cyclist
on 24 Apr 2013

Edited by the cyclist
on 24 Apr 2013

Accepted answer

So close ...

>> dataset(dataset(:,10)==1,:)

the cyclist
on 24 Apr 2013

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today
## 0 Comments