I am using surf command to plot a 2 dimensional function Z. The dimensions of Z are 155*125. The minimum value of Z is 162 and maximum value is 2048. I want to define my colour bar such that
values greater than 1301 -> colour black
values between 801 - 1300 -> colour red
values between 501 - 800 -> colour blue
values between 200 - 500 -> colour yellow
values less than 200 -> colour dark red
In the documentation i was able to find the RGB colours corresponding to my requirements, but I do not know how to generate a colourmap using the RGB values which fits my above mentioned criteria.