How to remove certain elements from a struct array
15 views (last 30 days)
Show older comments
Jorge Zorrilla Prieto
on 17 May 2020
Commented: Jorge Zorrilla Prieto
on 17 May 2020
I have the following struct array:
Now, I want to remove the rows whose "SNR" field value is less than 150 having only the struct array with the rows that are over that value. Is that possible?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/293707/image.png)
0 Comments
Accepted Answer
Walter Roberson
on 17 May 2020
mask = [Configuracion.SNR] >= 150;
Configuracion = Configuracion(mask);
More Answers (0)
See Also
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!