Flatten (Nested) Cell Arrays

버전 2.0.0.0 (2.3 KB) 작성자: Yung-Yeh Chang
A helper function to flatten nested cell arrays
다운로드 수: 727
업데이트 날짜: 2017/6/12

라이선스 보기

편집자 메모: This file was selected as MATLAB Central Pick of the Week

[out] = CELLFLAT(celllist) searches every cell element in cellist and put them on the top most level. Therefore, CELLFLAT linearizes a cell array tree structure.
Update 5/31/2017:
V2.0 -
1. The default behavior does not change.
2. Additional parameter for flatten cell arrays up to N level
cellflat(C,N) flatten cell array C for up to N level (N level search/flatten). The default value is N = -1.
3. Compatible to all Matlan versions.

인용 양식

Yung-Yeh Chang (2025). Flatten (Nested) Cell Arrays (https://kr.mathworks.com/matlabcentral/fileexchange/50502-flatten-nested-cell-arrays), MATLAB Central File Exchange. 검색 날짜: .

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

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
2.0.0.0

Distinguish from the older version

1.6.0.0

Fixed incorrect N level extraction

1.5.0.0

Update to 2.0
Update description.

1.4.0.0

Correct title

1.3.0.0

Take Iwo Bohr's advice that adds a sanity check for input argument.

1.2.0.0

Update title description

1.1.0.0

Update title

1.0.0.0