0
although this is well explained in https://www.mathworks.com/help/images/image-types-in-the-toolbox.html, just for starters, you could try this:
I = randi([0 255],100,100,'uint8'); % this is the red plane of your RGB image
I(:,:,2) = randi([0 255],100,100,'uint8'); % this is the green plane
I(:,...