Borrar filtros
Borrar filtros

convert cell array to matrix

5 visualizaciones (últimos 30 días)
pavlos
pavlos el 1 de Oct. de 2012
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

Respuesta aceptada

Jan
Jan el 1 de Oct. de 2012
D = reshape(cat(1, C{:}), 10, [])

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by