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.

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 5 月 17 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

質問済み:

2016 年 5 月 17 日

コメント済み:

2016 年 5 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by