This is a very simple function that creates a 2D logical matrix with a checkerboard pattern. It's similar to the true or false functions.
tf = checker(N)
tf = checker([M N])
tf = checker(M,N)
tf = checker(N) creates an NxN checkerboard pattern.
tf = checker([M N]) creates an MxN checkerboard pattern.
tf = checker(M,N) creates an MxN checkerboard pattern.
Chad Greene (2021). checker (https://www.mathworks.com/matlabcentral/fileexchange/72400-checker), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!