MATLAB: Convert cell array to matrix

cell arraysMATLABmatrix manipulation

Hello,
Consider a cell array 300×1.
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 30×10.
Thsnk you.
Pavlos

Best Answer

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