Convert structure to cell array
c = struct2cell(s)
If structure s is multidimensional, cell array c has size [p size(s)].
clear s, s.category = 'tree'; s.height = 37.4; s.name = 'birch';
create the structure
s = category: 'tree' height: 37.4000 name: 'birch'
Converting the structure to a cell array,
c = struct2cell(s) c = 'tree' [37.4000] 'birch'