Extract the values corresponding to the specific filed in the struct

3 次查看(过去 30 天)
Dear all,
I want to extract the all informaiton of the type field of ' S1 ' from the struct so that I can konw the latency and duration etc. about ' S 1 '.
Please see the attached figure and data. Thanks.

采纳的回答

KSSV
KSSV 2023-1-20
编辑:KSSV 2023-1-20
iwant = [S(:).latency]
Else other option, would be convert your structure to table and access the data you want.
T = struc2table(S)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by