MATLAB: How to split 14400×1 into 20 719×1 matrices

%smatrices

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 719×1 matrices and the last one would be the remaining in size.

Best Answer

a - your vector;
n = 719;
m = numel(a);
out = reshape([a(:);nan(mod(-m,n),1)],n,[]);