MATLAB: Changing dimensions of a cell array

arraycell arraysconversionstruct

Hey guys,
I have a cell array called "MD", attaching picture
pic9.JPG
it is a 1×2 cell, I want to make it 2×1 cell array, because then I would be able to convert it into a struct using this code
fields = {'model_data'};
Body_Data =cell2struct(MD,fields,2);
Does anybody know how to change the dimensions of the cell array?

Best Answer

You can do this with: '
field=field';