Flatten nested cell arrays

版本 1.0.0.1 (1.3 KB) 作者: Manu R
Linearize a cell array tree structure
1.4K 次下载
更新时间 2016/9/1

查看许可证

C1 = flatten({{1 {2 3}} {4 5} 6})
C2 = flatten({{'a' {'b','c'}} {'d' 'e'} 'f'})

% Outputs:
C1 =
[1] [2] [3] [4] [5] [6]
C2 =
'a' 'b' 'c' 'd' 'e' 'f'

引用格式

Manu R (2024). Flatten nested cell arrays (https://www.mathworks.com/matlabcentral/fileexchange/27009-flatten-nested-cell-arrays), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.1

Updated license

1.0.0.0