MATLAB: Save image seen in imagesc

image processingImage Processing Toolbox

when i display input image using "imagesc", it shows in a different format compared to "imshow"
imagesc(Img,[0 255]); colormap(gray); %code i used
is it possible to save the image i view from imagesc to a variable so that i can use it for further processing

Best Answer

Use mat2grey()