How do I resize a matrix in MATLAB? -
Suppose I had a 1-by-12 matrix and how can I do this by 4-by-3 matrix?
My current solution is ugly:
for n = 1: (length (mat) / 3) outside (n, 1: 3) = mat ((( N-1) * 3 + 1): ((N -1) * 3 + 3); Is there a better way to do this?