File Exchange

image thumbnail

Order all fields

version 1.0 (1.27 KB) by

Order fields of a structure array on all levels

0 Downloads

Updated

View License

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

Comments and Ratings (0)

MATLAB Release
MATLAB 7.2 (R2006a)
Acknowledgements

Inspired by: Sort Structure

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

» Watch video