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.

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 17 Mai 2016

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by