8 3 0 0 06 8 3 0 00 6 8 3 00 0 6 8 30 0 0 6 8
This is my current code and its quite frankly a mess, I don't even understand it myself. It doesn't produce an output.
clear; x=zeros(5,5); for r=1:5; for c=1:5; if x(r)==c; disp(8); elseif x(r)== c+1; disp(3); elseif x(r)==c-1; disp(6); else disp(0); end; fprintf('\n'); end;
Can I get a bit of assistance please.
Best Answer