MATLAB: Row vector into array.

arrayrow vecotr;

I have this A variable made up by 1×72 double.

Best Answer

Francesco, you could use
A(A == 0) = [];
B = reshape(A,8,8)
for your specially formatted matrix A, where the zeros are located at those very same positions.