Concatenate cell array along one dimension

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!

 採用された回答

KSSV
KSSV 2017 年 7 月 4 日

0 投票

cellB = mat2cell(cell2mat(cellA),[12 12]);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2017 年 7 月 4 日

回答済み:

2017 年 7 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by