Cody

栗 波

12213
Rank
2
Badges
172
Score
1 – 19 of 19

栗 波 received Commenter badge for Problem 4. Make a checkerboard matrix

on 9 Sep 2020

栗 波 submitted a Comment to Problem 4. Make a checkerboard matrix

this works and easy to understand~ function a = checkerboard(n) if mod(n,2)==1 b = ones(n,n); for i=2:2:n^2 b(i)=0; end a=b; else b = ones(n+1); for i=2:2:(n+1)^2 b(i)=0; end a=b(1:n,1:n); end end

on 9 Sep 2020

栗 波 received Solver badge for Solution 2925874

on 8 Sep 2020

1 – 19 of 19