MATLAB: Cell Array to Structures

cell arraysstructures

Is there a way to take a 1xM cell array and transform that into a structure array without using the function struct()?
The cell array will always be formatted this way: CellArr = {<field1 name>, {cell array of field 1 contents}, <field2 name, {cell array of field 2 contents}, etc…}

Best Answer

Note: this will use struct() internally.