Skip to content

struct2cell

builtin · libnexusinterp/nexus-value/ov-cell-proprietary.cc

: c = struct2cell (s)

Convert the structure array s into a cell array of its field values.

The first dimension of c runs over the fields, in field order, and the remaining dimensions are those of s. A scalar structure therefore gives a column of values.