This solution is outdated. To rescore this solution, sign in.
-
1 Comment
sun tao
on 17 May 2018
a = ~rem((1:n)+(1:n)',2) % Size: 23
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!