Divide a cellarray in n parts

I've {A} that is linear cell array 1xN. I would like divide this vector in M parts. {B} is MxL matrix of cell. (MxL=N). Thanks.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 17 de Mayo de 2016

0 votos

A=num2cell(1:20);
out=reshape(A,4,5)

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 17 de Mayo de 2016

Comentada:

el 17 de Mayo de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by