How do I access data inside a struct that is inside another struct that is inside a cell array

Hi! I have a cell array A which contains many structs, one of the struct (B) contains 4 other structs. One of these 4 structs called C, contains different data, some cell some doubles and I want to access just one file(D) inside C. Hi would I do it? Any help is appreciated

回答 (1 件)

Voss
Voss 2022 年 9 月 7 日
If B is the index of the struct you want in cell array A, C is a field of that struct, etc.
A{B}.C.D

カテゴリ

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

製品

リリース

R2015b

質問済み:

2022 年 9 月 7 日

コメント済み:

2022 年 9 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by