cell2struct
Creates a struct from a cell.
📝Syntax
st = cell2struct(ce, fields)
st = cell2struct(ce, fields, dim)
📥Input Arguments
Parameter Description
ce a cell.
fields a cell of strings.
dim dimension along cell is converted.
📤Output Arguments
Parameter Description
st a struct array.
📄Description

st = cell2struct(ce, fields) creates a struct from a cell.

💡Examples
ce = {85, 50, 68; 'Pierre', 'Anna', 'Roberto'}
fields = {'Height','Name'}
A = cell2struct (ce, fields, 1)
🔗See Also
cellstructstruct2cell
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub