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
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
img = 256
0 Kommentare
Antworten (2)
Walter Roberson
am 7 Sep. 2022
ch = checkerboard(16, 8, 8)>0.5;
image(ch); colormap(gray(2)); axis off
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!