cell array of nested cells

3 ビュー (過去 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 件のコメント
ludvikjahn
ludvikjahn 2015 年 2 月 26 日
I love you

サインインしてコメントする。

その他の回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2015 年 2 月 26 日
let yourcellarray - your array
out = cat(1,yourcellarray{:});

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by