Order all fields

Order fields of a structure array on all levels

Vous suivez désormais cette soumission

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

Citation pour cette source

Paul A.M. Bune (2026). Order all fields (https://fr.mathworks.com/matlabcentral/fileexchange/19459-order-all-fields), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : Sort Structure

Catégories

En savoir plus sur Data Types dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0