How to concatenate elements of cell array

Dear All,
I have what I expect is a simple problem that I would be most grateful for some help with.
I have a 333x1 cell array. Each of the 333 elements are a numeric array, ranging in dimensions from 49x332 to 49X1.
I would like to concatenate all the elements so that I have a single 49x55611 array.
Many thanks for any advice,
Rob

 採用された回答

Stephen23
Stephen23 2017 年 5 月 12 日
編集済み: Stephen23 2017 年 5 月 12 日

9 投票

Where C is your cell array:
[C{:}]
or
horzcat(C{:})
For more info on how this works, read about comma separated lists:

その他の回答 (1 件)

KL
KL 2017 年 5 月 12 日

3 投票

cell2mat(YourCellArray)

カテゴリ

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

質問済み:

2017 年 5 月 12 日

コメント済み:

2024 年 8 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by