myMap = customColormap({[1 0 0], [0 1 0],[0 0 1]},'nPoints',25);
colormap(myMap);