How do I access data inside a struct that is inside another struct that is inside a cell array
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!