Hi Shobana,
How about the following:
% Assuming you have three matrices R, G and B
I = uint8(zeros([size(R) 3]));
I(:,:,1) = R;
I(:,:,2) = G;
I(:,:,3) = B;
imwrite(I,'Combined.png');
Best.
How about the following:
% Assuming you have three matrices R, G and B
I = uint8(zeros([size(R) 3]));
I(:,:,1) = R;
I(:,:,2) = G;
I(:,:,3) = B;
imwrite(I,'Combined.png');
Best.