An RGB image consists of three channels as the name tells, red, green, and blue channels. Using Matlab image processing functionality these three channels could be separated from the image.
Hire me on fiverr for your projects: https://www.fiverr.com/share/w2b04v