Code covered by the BSD License  

Highlights from
Order all fields

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 1.27 KB File ID: #19459

Order all fields

by

 

04 Apr 2008 (Updated )

Order fields of a structure array on all levels

| Watch this File

File Information
Description

A recursive version of MatLab function "orderfields".

Like "orderfields", function "OrderAllFields" orders fieldnames in a structure array by sorting them alphabetically. Contrary to "orderfields", which only orders top-level fields, function "OrderAllFields" orders fields of a structure array on all its levels (thereby also passing levels which have a cell array structure rather than a structure array structure).

Acknowledgements

Sort Structure inspired this file.

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

Contact us