MATLAB: Image from RGB to another one

color space conversionImage Processing Toolboxrgb to cmyk

I have two Questions :
1. Read the RGB image?
2. Convert RGB color image into CMYK color image?
I solve the first one
figure
image_mat = imread('color.jpg');
imshow(image_mat)
but How can i solve the second one ?

Best Answer

Did you even try the function in the link KSSV gave you? Because I did, and the attached code worked just fine.