Convert a struct with multiple fields into spreadsheet

13 ビュー (過去 30 日間)
Mudathir Bakhit
Mudathir Bakhit 2022 年 10 月 27 日
回答済み: KSSV 2022 年 10 月 27 日
Hi,
I had the struct array seen below and I want to export it in a manner similar to the spreadsheet in the attached picture please. One spreadsheet for each sulci_? variable in the last two lines. You can notice that the list_sulc (seven variables) came out as variable without the lh. or rh suffix seen in the spreadsheet (are actually 14). Thanks.
struct with fields:
options: [1×1 struct]
list_subject: {'103515' '103818'}
list_sulc: {'po' 'sps' 'pocs_s' 'pocs_i' 'ips_v' 'ips_h' 'mcgr'}
sulci_width: [2×14 double]
sulci_depth: [2×14 double]

回答 (1 件)

KSSV
KSSV 2022 年 10 月 27 日
REad about struct2table. After conversion write it into excel/ spreadsheet using writetable.

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by