Thanks for your great work!
I have used the function “colorspace( )” which can be found in the page of "http://www.mathworks.com/matlabcentral/fileexchange/28790-colorspace-transformations" as follows:
rgb = imread('peppers.png');
C = makecform('srgb2lab');
lab = applycform(rgb,C);