Borrar filtros
Borrar filtros

Concatenate cell array along one dimension

9 visualizaciones (últimos 30 días)
Xh Du
Xh Du el 4 de Jul. de 2017
Respondida: KSSV el 4 de Jul. de 2017
Hi all,
I have a cell array like this:
cellA =
[12x2 double] [12x2 double] [12x2 double]
[12x2 double] [12x2 double] [12x2 double]
What I want is to concatenate cellA along dimension 2, so I get a new cell like this:
cellB =
[12x6 double]
[12x6 double]
Any ideas how to obtain cellB? Thanks!

Respuesta aceptada

KSSV
KSSV el 4 de Jul. de 2017
cellB = mat2cell(cell2mat(cellA),[12 12]);

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by