n=16;D = [0:2^n]';B = rem(floor(D*pow2(-(n-1):0)),2);for i=1:2^n C=reshape(B(i,:),4,4);endend
I want to save all the square matrices of order 4 in matlab workspace. But the code I have written saves the last one only. Please help me in getting saved all the matrices.
Best Answer