Is this grayscale image?

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

0 votes

Yes.
It could also be considered a black and white image.

More Answers (0)

Categories

Find more on Modify Image Colors in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!