This video tutorial shows how to separate an image's R G and B channels for further image processing tasks , such as image thresholding and segmentation applications. The MATLAB code first explains how to split the image to its RGB channels followed by an example of how to apply image thresholding for segmentation. The video also explains how to use the MATLAB "imtool" command to get the test threshold value to detect the desired object in the image.
The link to subplot command tutorial is as follows:
• How to use MATLAB subplot command