How to remove certain elements from a struct array

15 vues (au cours des 30 derniers jours)
Jorge Zorrilla Prieto
Jorge Zorrilla Prieto le 17 Mai 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?

Réponse acceptée

Walter Roberson
Walter Roberson le 17 Mai 2020
mask = [Configuracion.SNR] >= 150;
Configuracion = Configuracion(mask);

Plus de réponses (0)

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by