function a = sakktabla(n) [x y] = meshgrid(1:n, 1:n); a = mod(x + y, 2); end