Changing dimensions of a cell array

Hey guys,
I have a cell array called "MD", attaching picture
pic9.JPG
it is a 1x2 cell, I want to make it 2x1 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?

 Respuesta aceptada

Stijn Haenen
Stijn Haenen el 2 de Feb. de 2020
You can do this with: '
field=field';

1 comentario

Chris Dan
Chris Dan el 3 de Feb. de 2020
Stijn Haenen
Wrong chocie of variable name, but I got it (Y)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Preguntada:

el 2 de Feb. de 2020

Comentada:

el 3 de Feb. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by