MATLAB Answers

0

Storing Cell elements in a single matrix

Asked by Aniket Kumar on 8 Jun 2019
Latest activity Commented on by Aniket Kumar on 8 Jun 2019
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!

  0 Comments

Sign in to comment.

1 Answer

Answer by madhan ravi
on 8 Jun 2019
Edited by madhan ravi
on 8 Jun 2019
 Accepted Answer

a = cat(3,yourcell{:})

  3 Comments

thanks for your answer, but this is the error coming
"Error using cat
Dimensions of matrices being concatenated are not consistent."
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.
Thanks a lot that solved my querry!

Sign in to comment.