MATLAB: Find and plot the variation of R, G, and B values of the image

colorrgb

Looking for help on finding and plotting the values of R, G, and B of the attached image. Also to find pixel locations of the dark lines and the wavelength of the dark lines. I am new to MatLab and could use a little help. Thank you in advance.

Best Answer

RGB = imread('YourImage.tif');
Red = RGB(:,:,1);
histogram(Red(:))