Delete a row in a structure that contains a certain word

2 visualizaciones (últimos 30 días)
Hi,
I have a 1×5897 struct array with fields. How do I delete the entire rows that contain the letters 'AA'.
  3 comentarios
AA
AA el 3 de Ag. de 2019
The heading of the column Letters has several letters in that struct array. AA is one of them.
AA
AA el 3 de Ag. de 2019
so if the structure is called Random then you can find the column amongst Random.Letters

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Ag. de 2019
mask = ismember({Random.Letters}, 'AA') ;
Random(mask) = [] ;

Más respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by