resize cell in different dimension
이전 댓글 표시
i have a cell of size 20*1 . i want to convert them into 10*2 .
답변 (1개)
James Tursa
2017년 9월 14일
편집: James Tursa
2017년 9월 14일
Assuming you mean you want to reshape the cell array itself, and not the contents of the cell array:
mycell = your 20x1 cell array
result = reshape(mycell,10,2);
Or if you wanted the results arranged differently in the rows, then maybe this is what you need:
mycell = your 20x1 cell array
result = reshape(mycell,2,10).';
카테고리
도움말 센터 및 File Exchange에서 Data Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!