How can I see just a couple of datapoint based on a specific criteria
2 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
the cyclist
2013 年 4 月 24 日
編集済み: the cyclist
2013 年 4 月 24 日
So close ...
>> dataset(dataset(:,10)==1,:)
2 件のコメント
the cyclist
2013 年 4 月 24 日
Sorry. I corrected that typo about 10 seconds after I posted, but you were too fast! Try the edited version.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!