View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Order all fields

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

Order all fields



04 Apr 2008 (Updated )

Order fields of a structure array on all levels

| Watch this File

File Information

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).


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