This solution is outdated. To rescore this solution, sign in.
-
3 Comments
claus becker
on 26 Dec 2017
we wrote
t = n*n
s = 1:1:t
u = mod(s, 2)
a = reshape(u, [n, n]);
which gives the right matrix in matlab. So, why did we get a fail?
:O(
QI
on 26 Jun 2018
you failed with even cases
Shahpour Turkian
on 24 Jun 2021
incorrect for checkerboard(2)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!