how to merge rows?

Hello, i have 4 * 6 cell where each cell inturn contains 67*177 size..i want to combine every cell which means 67*177*24 must be my final cell size..

回答(1 个)

KSSV
KSSV 2017-4-25

0 个投票

Let A be your cell...
iwant = A(:) ;
You can use reshape also.

3 个评论

No actually,what i want is: i have a cell array by name Result with size 1*664 where Result{1,1} is of size 4*6..in turn Result{1,1}(1,1)=67 * 177...so,finally the output must be of size 1* 664 where output{1,1}=1*284616 (where 67 * 177 *24 =284616)...i am sending you the screenshots..please do have a look and tell me how to do this..
Jan
Jan 2017-4-25
编辑:Jan 2017-4-25
The screenshot is such small on my desktop, that I cannot read it. I do not understand the description also:
  • R is a {1 x 664} cell vector.
  • R{1,1} is an array of the size 4 x 6, but is this a double array or another cell array?
  • R{1,1}(1,1) is "67 * 177..." Is this a string? Or do you mean an array with the dimension [67 x 177]? What does "..." mean here?
  • I do not see the connection to the original question: Where is the "4 * 6 cell"? What does "combine" mean in the original question?
R{1,1} is also an cell array..R{1,1}(1,1) is logical cell array..R{1,1}is 4 * 6 cell array ...

请先登录,再进行评论。

类别

Community Treasure Hunt

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

Start Hunting!

Translated by