%% Convert Truecolor (RGB) Image to Grayscale Image
% Read a truecolor (RGB) image into the workspace from a file and display it.

RGB = imread('example.tif');
imshow(RGB)

% Convert the RGB image into a grayscale image.

I = im2gray(RGB);

% Display the converted grayscale image.

imshow(I)

% Copyright 2020 The MathWorks, Inc.