For all images use colormap(gray)
a) Load the image coffee.jpg into matrix A and view it withimagesc.
use Matlab to solve the problem.
the coffee.jpg is the a picture with 3024x4032x3 uint8
i use code
A = imread(‘coffee.jpg’);
f1 = figure;
imagesc(A);
colormap(‘gray’);
but i still get a colorful picture
i need it after imagesc(A)
it will show a gray picture
thank you
Expert Answer
An answer will be send to you shortly. . . . .