Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How to exract all the rows who match an specific value in a table?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Walter Roberson
am 6 Nov. 2017
mask = strcmp(YourTable.Name, 'Juanita');
sub_table = YourTable(mask,:);
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!