resize cell in different dimension

답변 (1개)

James Tursa
James Tursa 2017년 9월 14일
편집: James Tursa 2017년 9월 14일

1 개 추천

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).';

댓글 수: 2

komal bharti
komal bharti 2017년 9월 14일
i want first 10 data in in first row and last 10 data in second row .
result = reshape(mycell,10,2).';

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Data Types에 대해 자세히 알아보기

태그

질문:

2017년 9월 14일

댓글:

2017년 9월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by