Delete a row in a structure that contains a certain word

4 visualizzazioni (ultimi 30 giorni)
Hi,
I have a 1×5897 struct array with fields. How do I delete the entire rows that contain the letters 'AA'.
  3 Commenti
AA
AA il 3 Ago 2019
The heading of the column Letters has several letters in that struct array. AA is one of them.
AA
AA il 3 Ago 2019
so if the structure is called Random then you can find the column amongst Random.Letters

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Structures in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by