Code covered by the BSD License  

Highlights from
Cell/Struct Tree, and Struct Sorting

Be the first to rate this file! 16 Downloads (last 30 days) File Size: 5.39 KB File ID: #31736

Cell/Struct Tree, and Struct Sorting

by

 

Generates trees for cell arrays, structs and data, from a cell or a struct.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us