FUNCTION REFERENCE
cell2struct
Convert cell contents to fields along a selected dimension.
Convert cell contents to fields along a selected dimension.
Syntax
structure = cell2struct(cells, fieldNames, dimension)Example
s=cell2struct({3;'hi'},{'n','text'},1); s.n % 3Differences from MATLAB: Dimensions 1 and 2 only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.