How to split a matrix
조회 수: 5 (최근 30일)
이전 댓글 표시
How can I split a 1200X2 matrix into three serial 400X2 matrices?
댓글 수: 0
답변 (1개)
Fangjun Jiang
2018년 5월 24일
A=reshape(1:24,12,[]);
B1=A(1:4,:)
B2=A(5:8,:)
B3=A(9:12,:)
C=mat2cell(A,[4,4,4],2);
C{1}
C{:}
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!