Effacer les filtres
Effacer les filtres

How to extract a certain row from a struct based on a specific column name?

35 vues (au cours des 30 derniers jours)
Hello!
I want to get the row with the DisplayName 'vfzg_w' based on the name, not the number of the field!
After that I want to work with the field Data of this specific row, is that possible?
Thanks for your advice!

Réponse acceptée

源樹 上林
源樹 上林 le 13 Août 2020
たぶんこう
data(data.DisplayName == 'vfzg_w', :)

Plus de réponses (0)

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by