struct

Additional structure manipulation functions.

Select category:

Structure handling

getfields
It is equivalent to [S.k1, ...] Return selected values from a scalar struct.
setfields
Sets S.KEY1 = VALUE1, S.KEY2 = VALUE2, etc, finally returning S.
tars
s = tars (foo,bar, ... ) == struct ("foo",foo,"bar",bar,...)
fields2cell
Works similarly to 'struct2cell' (see there), but considers only fields given by the strings in cell array NAMES.
cell2fields
Return structure-array S after setting the fields FIELDS with the slices of cell-array C vertically to dimension DIM.
fieldempty
Returns a logical array with same dimensions as structure S, indicating where field NAME is empty.
structcat
Return the concatenation of N-d structures STRUCT1, ..., STRUCTN along dimension DIM.

Package: struct