Delete a row in a structure that contains a certain word

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by