I have written a code which contains a for loop but I need it to be seperated into columns. This is the code, however I would like each value of N to be a new column. Is there a way of doing that?
for N=1:12;for m=1:12; if mod(N, m)==0 disp '1' else disp '0' end endend
Best Answer