필터 지우기
필터 지우기

Concatenate cell array along one dimension

조회 수: 3 (최근 30일)
Xh Du
Xh Du 2017년 7월 4일
답변: KSSV 2017년 7월 4일
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일
cellB = mat2cell(cell2mat(cellA),[12 12]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by