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

31 次查看(过去 30 天)
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!

采纳的回答

源樹 上林
源樹 上林 2020-8-13
たぶんこう
data(data.DisplayName == 'vfzg_w', :)

更多回答(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