Storing Cell elements in a single matrix

I have a cell of size (8*11) and each element of this cell is of size (32*32).
Now I have to store all elements of the cell in a single matrix of size
(32*8*11 , 32),
means stacking all the (11*8 = 88) elements of the cell (each of size 32*32) one after other.
Someone please help!

 Respuesta aceptada

madhan ravi
madhan ravi el 8 de Jun. de 2019
Editada: madhan ravi el 8 de Jun. de 2019
a = cat(3,yourcell{:})

3 comentarios

Aniket Kumar
Aniket Kumar el 8 de Jun. de 2019
thanks for your answer, but this is the error coming
"Error using cat
Dimensions of matrices being concatenated are not consistent."
madhan ravi
madhan ravi el 8 de Jun. de 2019
Editada: madhan ravi el 8 de Jun. de 2019
When yourcell is of size 8 x 11 each containing 32 x 32 double , haven’t got an error unless you’re doing something strange.
Aniket Kumar
Aniket Kumar el 8 de Jun. de 2019
Thanks a lot that solved my querry!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Jun. de 2019

Comentada:

el 8 de Jun. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by