Extract the values corresponding to the specific filed in the struct

3 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by