I am creating an image of size 256×256 with a black and white checkerboard pattern. Size of each block should be 16×16 but I am stuck how to get started
1 view (last 30 days)
Show older comments
img = 256
0 Comments
Answers (2)
Walter Roberson
on 7 Sep 2022
ch = checkerboard(16, 8, 8)>0.5;
image(ch); colormap(gray(2)); axis off
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
