function a = checkerboard(n)
b=ones(n);
for i=1:n
for j=1:n
if (mod(i+j,2))
b(i,j)=0;
end
end
end
a=b
end
Phillippe seems like crack-brained with being "leading solutioner".
Why this is not working?
B = A ( : , ~=n)
I know logic operator needs something~=n but I cannot decide how to correct it? Also, I can write if statement in a for loop but its size is huge.