access nested struct from excel to matlab

I have a struct on a cell in matlab. How can i open this struct by code ?

回答 (1 件)

VBBV
VBBV 2022 年 11 月 18 日
編集済み: VBBV 2022 年 11 月 18 日

1 投票

myStruct.d = rand(1,10); % struct with data
Par1 = {myStruct}; % nested in cell
Data = Par1{1}.d % access data
Data = 1×10
0.8987 0.1334 0.4168 0.1004 0.0739 0.3847 0.7139 0.7270 0.6445 0.5336

1 件のコメント

Tran Anh
Tran Anh 2022 年 11 月 18 日
It work. Thank you very much

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStructures についてさらに検索

タグ

質問済み:

2022 年 11 月 18 日

コメント済み:

2022 年 11 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by