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.

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 17 Mai 2016

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by