Cell/Struct Tree, and Struct Sorting
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.
Cita come
T. R. (2026). Cell/Struct Tree, and Struct Sorting (https://it.mathworks.com/matlabcentral/fileexchange/31736-cell-struct-tree-and-struct-sorting), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Language Fundamentals > Data Types > Structures >
- MATLAB > Language Fundamentals > Data Types > Cell Arrays >
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
cstreesort/
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
