Extracting HSV channels from images

HSV images are made of HSV color combination, below matlab code extracts all these individual channels.

Example :

>> A = imread('penguins.jpg'); % reading Image
>> B = rgb2hsv(A);
>> AH = B(:,:,1); % extracting HUE Channel
>> AS = B(:,:,2); % extracting SATURATION Channel
>> AV = A(:,:,3); % extracting Value Channel
>> figure,
>> subplot(2,2,1); imshow(A); title('original image');
>> subplot(2,2,2); imshow(AH); title('HUE');
>> subplot(2,2,3); imshow(AS); title('SATURATION');
>> subplot(2,2,4); imshow(AV); title('VALUE');

Output :