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 Exchange에서 Matrix 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