Cell/Struct Tree, and Struct Sorting

版本 1.0.0.0 (5.4 KB) 作者: T. R.
Generates trees for cell arrays, structs and data, from a cell or a struct.
471.0 次下载
更新时间 2011/6/9

查看许可证

Given a cell or a struct, is is sometimes usefull to know the tree from the main to the farthest branch.
The trees are returned as string cells, based on the data type. Each path can be effectively executed using Matlab built-in eval() function.

The sorting of struct is also implemented, with some limitations.
Sorting is achieved based on Matlab built-in sort() function, in reference to one of the fields. Therefore all fields should have equal number of elements.

Sorting cells in relation to one of the field is not implemented.

引用格式

T. R. (2024). Cell/Struct Tree, and Struct Sorting (https://www.mathworks.com/matlabcentral/fileexchange/31736-cell-struct-tree-and-struct-sorting), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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