Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to exract all the rows who match an specific value in a table?
1 回表示 (過去 30 日間)
古いコメントを表示
If I have this table
a b name
1 2 Juanita
4 5 Felipe
7 9 Juanita
11 4 elizabeth
5 6 Felipe
2 9 Juanita
How could i extract the all the rows who match with Juanita in name, i.e., to obtain this:
a b name
1 2 Juanita
7 9 Juanita
2 9 Juanita
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 11 月 6 日
mask = strcmp(YourTable.Name, 'Juanita');
sub_table = YourTable(mask,:);
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!