How to split 14400x1 into 20 719x1 matrices?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi i have a matrix that has 1 column and that column has 14400 elements what i want is to split it to each 719 elements so i end up with 19 of 719x1 matrices and the last one would be the remaining in size.
댓글 수: 0
채택된 답변
Andrei Bobrov
2016년 8월 22일
a - your vector;
n = 719;
m = numel(a);
out = reshape([a(:);nan(mod(-m,n),1)],n,[]);
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!