nestedstruct2cell

버전 1.0.0.0 (1.13 KB) 작성자: Todd Pataky
NESTEDSTRUCT2CELL converts a nested 1x1 structure array into an MxN cell array
다운로드 수: 1.2K
업데이트 2006/5/26

라이선스 없음

NESTEDSTRUCT2CELL allows for workspace visualization of nested structural arrays, and also offers an alternative method of constructing nested structures through its companion function CELL2NESTEDSTRUCT (also available at MATLAB Central).

Example:

clear S;
S.water.a=111;
S.water.b=222;
S.melon=[];
S.a.b.c.d.e='aaa';
S.q.r=cell(6,2);
[C] = nestedstruct2cell(S)

C =

'water' 'a' '' '' '' [ 111]
'water' 'b' '' '' '' [ 222]
'melon' '' '' '' '' []
'a' 'b' 'c' 'd' 'e' 'aaa'
'q' 'r' '' '' '' {6x2 cell}

Data is stored in the final column irrespective of the nesting level of a given branch. Empty cells indicate that the branch is terminated at the leftmost non-empty nesting level.

인용 양식

Todd Pataky (2026). nestedstruct2cell (https://kr.mathworks.com/matlabcentral/fileexchange/11203-nestedstruct2cell), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13SP1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Types에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.0.0.0