MATLAB: How to fuse R,G,B Components

Image Processing Toolboxrgb image

I have read an RGB Image, and extracted all its components R,G,B seperately by,
R = inputImage (:,:,1);
G = inputImage (:,:,2);
B = inputImage (:,:,3);
Again I performed some operations to get the values changed. they are Re,Ge,Be.
Now again I want to display the Image integrating all these Re,Ge,Be. How?

Best Answer

cat(3,Re,Be,Ge);