Version 1.0.0 (34.4 KB) by Chad Greene
Make a simple logical checkerboard pattern.


Updated 9 Aug 2019

View License

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.

% Syntax

tf = checker(N)
tf = checker([M N])
tf = checker(M,N)

% Description

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.

% Example


Cite As

Chad Greene (2023). checker (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Periodic Waveform Generation in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes