convert cell array to matrix

5 次查看(过去 30 天)
pavlos
pavlos 2012-10-1
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
D = reshape(cat(1, C{:}), 10, [])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by