<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
I = imread('C:\Documents and Settings\admin\Desktop\FDP\Images\apple3.jpg');
[m n p]=size(I);
R = I(:,:,1);
G = I(:,:,2);
B = I(:,:,3);
figure,imshow(I);
figure,imshow(R);
figure,imshow(G);
figure,imshow(B);
RGB=cat(3,R,G,B);
figure,imshow(RGB);