I have a 4 by 16 matrix, say mat, and it can be random for this example. I would like to convert it into four seperate 4 by 4 matricies, where the first row of mat is reshaped into the first 4 by 4 matrix.
At the moment I have this code...
mat = randi([0, 9], [4,16])
for k = 1:size(mat,1)
vec = mat(k,:);
A = reshape(vec,[4,4]);
This achieves what I would like it to, however it stores all four of the matricies under A, so after it has run I can only access the fourth matrix.
Is there an efficient way to title the four matricies seperately so I can access them all?