How do i combine multiple cells into one

10 visualizaciones (últimos 30 días)
fadams18
fadams18 el 13 de Jul. de 2021
Respondida: fadams18 el 13 de Jul. de 2021
I have 3 cells each containting three 20x60 matrices
cell_1 = { 20x60, 20x60 , 20x60 }
...
cell_3= { 20x60, 20x60 , 20x60 }
I would like to stack them on top of each other
cell_1
cell_2
cell_3
so that i obtain final_cell =3 x 3 cell

Respuestas (2)

Chunru
Chunru el 13 de Jul. de 2021
c1 = {rand(2), rand(2)}
c1 = 1×2 cell array
{2×2 double} {2×2 double}
c2 = {rand(2), rand(2)}
c2 = 1×2 cell array
{2×2 double} {2×2 double}
c3 = {rand(2), rand(2)}
c3 = 1×2 cell array
{2×2 double} {2×2 double}
c =[c1; c2; c3]
c = 3×2 cell array
{2×2 double} {2×2 double} {2×2 double} {2×2 double} {2×2 double} {2×2 double}

fadams18
fadams18 el 13 de Jul. de 2021
ok never mind figured it out
final_cell=[cel_1; cell_2; cell_3]

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by