MATLAB: How to convert single indexed .tiff image to grayscale

image processing

Hello! I have a single indexed .tiff file. So there is no colormap.
When i check the information of image, Colortype is 'grayscale'.
i want to convert.tiff image to grayscale.

Best Answer

img(:,:,4) = [];%discard fourth part
g=rgb2gray(img);