Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to exract all the rows who match an specific value in a table?

1 visualización (últimos 30 días)
Philippe Corner
Philippe Corner el 6 de Nov. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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

Respuestas (1)

Walter Roberson
Walter Roberson el 6 de Nov. de 2017
mask = strcmp(YourTable.Name, 'Juanita');
sub_table = YourTable(mask,:);

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by