Is this grayscale image?

1 view (last 30 days)
Kiha Kim
Kiha Kim on 13 Dec 2021
Answered: Walter Roberson on 13 Dec 2021
A= zeros(10,10);
B=ones(10,10);
C=[ A B A B A B A];
D=[C;C;C;C;C;C;C;C];
imshow(D)

Accepted Answer

Walter Roberson
Walter Roberson on 13 Dec 2021
Yes.
It could also be considered a black and white image.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!