repositionStructFie​ld

a bit more convenient way to reposition fields in a structure

You are now following this Submission

function [s] = repositionStructField(s,shiftfield,newpos)
%shiftfield can be fieldname (string) or current position index of field
%newpos can be either new position index of field, or the name of the field (as string) that is
%currently occupying the new position

Cite As

Georg D (2026). repositionStructField (https://www.mathworks.com/matlabcentral/fileexchange/32275-repositionstructfield), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0