RGB = ind2rgb(X,map) converts the matrix X and corresponding colormap map to RGB (truecolor) format.
RGB = ind2rgb(X,map)
You can give an example if you know one.