cell array of nested cells

조회 수: 4 (최근 30일)
ludvikjahn
ludvikjahn 2015년 2월 26일
댓글: ludvikjahn 2015년 2월 26일
goo morning, I have a cell array made of cells of dimension either n X 218 or empty cells, like that:
{20388x218 cell}
{20194x218 cell}
{20050x218 cell}
{11704x218 cell}
{}
{}
{}
{}
{}
{}
and I want to concatenate them in order to get a cell array (n X 218) where n is the sum of 20388,20194, etc.,possibly without a loop.
Any ideas?

채택된 답변

Guillaume
Guillaume 2015년 2월 26일
It's simply:
vertcat(cellarray{:});

추가 답변 (1개)

Andrei Bobrov
Andrei Bobrov 2015년 2월 26일
let yourcellarray - your array
out = cat(1,yourcellarray{:});

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by