Delete a row in a structure that contains a certain word

3 ビュー (過去 30 日間)
AA
AA 2019 年 8 月 3 日
回答済み: Walter Roberson 2019 年 8 月 3 日
Hi,
I have a 1×5897 struct array with fields. How do I delete the entire rows that contain the letters 'AA'.
  3 件のコメント
AA
AA 2019 年 8 月 3 日
The heading of the column Letters has several letters in that struct array. AA is one of them.
AA
AA 2019 年 8 月 3 日
so if the structure is called Random then you can find the column amongst Random.Letters

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2019 年 8 月 3 日
mask = ismember({Random.Letters}, 'AA') ;
Random(mask) = [] ;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by