To change the position of a field within a structure in Matlab, you can create a new structure and copy the fields over in the desired order. Here is an example:
main.m222 chars13 lines
In this example, the fields a
, c
, b
are reordered in the new structure. You can adjust the field order and create new structures as needed.
gistlibby LogSnag