MATLAB: Grayscale of RGB channels grayscale Is it possible to convert the matrix values of R, G and B channels to its own grayscale values respectively? Best Answer RGB = rand(100, 100, 3); % RGB arrayR = RGB(:, :, 1); % Gray image of the red channelG = RGB(:, :, 2); % Gray image of the green channelB = RGB(:, :, 3); % Gray image of the blue channelfigureimage(R)figureimage(cat(3, R, R, R)) Related SolutionsMATLAB: How to find inverse of concatenate r = rgb(:, :, 1); g = rgb(:, :, 2); b = rgb(:, :, 3); MATLAB: Display an RGB image Convert it into uint or int and use imshow or imagesc. Related QuestionHow to calculate intensity of a particular color in an RGB imageHow to convert RGB image to grayscale imageIncrease RGB image saturation.
Best Answer