MATLAB: How to change color of colorbar’s lower minimum value

change minimum values color on colorbar

How can I change the minimum value color on the color bar? I'm getting white color for the lower values.
imagesc(x,y,value)
set(gca,'YDir','normal')
myColorMap = colormap;
myColorMap(1,:) = [1 1 1];
colormap(myColorMap);
colorbar;
ma=max(value);
mi=min(value);

Best Answer

You are getting a white color for the lower values because you defined:
myColorMap(1,:) = [1 1 1];