function A = checkerboard(n,m)
    A = zeros(n,m);
    A(1:2:n,1:2:m) = 1;
    A(2:2:n,2:2:m) = 1;
end

