Cell/Struct Tree, and Struct Sorting

バージョン 1.0.0.0 (5.39 KB) 作成者: T. R.
Generates trees for cell arrays, structs and data, from a cell or a struct.
ダウンロード: 469
更新 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 Center および MATLAB AnswersStructures についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0