Extract the values corresponding to the specific filed in the struct

3 ビュー (過去 30 日間)
Ting-Yu Chueh
Ting-Yu Chueh 2023 年 1 月 20 日
コメント済み: Stephen23 2023 年 1 月 20 日
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 Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by