FUNCTION REFERENCE

struct2cell

Convert structure fields to a cell array.

Convert structure fields to a cell array.

Syntax

cells = struct2cell(structure)

Example

c=struct2cell(struct('a',3,'b',4)); c{2}   % 4

Differences from MATLAB: Results requiring a third dimension are rejected.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.