convert cell array to matrix

Hello,
Consider a cell array 300x1.
How can I create a matrix where the first 10 rows of the cell become the first row of the matrix, the 11th-20th rows become the second row, etc.
The resulting matrix should be 30x10.
Thsnk you.
Pavlos

 採用された回答

Jan
Jan 2012 年 10 月 1 日

0 投票

D = reshape(cat(1, C{:}), 10, [])

1 件のコメント

Andrei Bobrov
Andrei Bobrov 2012 年 10 月 1 日
D = reshape(cat(1, C{:}), 10, []).'

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

質問済み:

2012 年 10 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by