Order all fields

Order fields of a structure array on all levels

您现在正在关注此提交

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

引用格式

Paul A.M. Bune (2026). Order all fields (https://ww2.mathworks.cn/matlabcentral/fileexchange/19459-order-all-fields), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: Sort Structure

类别

Help CenterMATLAB Answers 中查找有关 Data Types 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0