Extract the values corresponding to the specific filed in the struct

3 views (last 30 days)
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.

Accepted Answer

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

More Answers (0)

Categories

Find more on Data Type Conversion 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!