This solution is outdated. To rescore this solution, sign in.
-
4 Comments
Show
1 older comment
Kiam Heong Kwa
on 13 Nov 2019
The following solution, which is correct, is marked wrong.
function a = checkerboard(n)
a = ones(n);
a(2:2:end) = 0;
end
Yuhua Di
on 19 Jan 2020
lol
Alberto Chavez
on 21 Mar 2020
Maybe it is right for a determined "n", but for other values it's wrong, that is why it does several tests.
akarsh saxena
on 6 Oct 2020
not valid for even value of n. plz recheck it
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!