This solution is outdated. To rescore this solution, sign in.
-
2 Comments
claus becker
on 29 Dec 2017
we are getting failed even though the code works
claus becker
on 29 Dec 2017
this works
function a = checkerboard(n)
b = ones(n,n);
for i=2:2:n^2;
b(i)=0;
end
a=b
end
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!