I am plotting a matrix with rain intensities with an image plot in matlab.
I want the colorbar to show a distinct colour for 0-10, 10-20... to 90-10.
I've tried the function surf(10) to get 10 discrete colors, but then only values up 10 is showed.
This is the code I used:
image(pr20020719T0730)
cmap = jet(10);
colormap(cmap);
colorbar
This is how the image looks after the code

