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, [])

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix 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