I have a 965*965 matrix with values ranging from 0 to 14. I would like to color each pixel according to a color map I will define.
I would like all elements that equal 1 to be red, all elements equal 2 to be green, all elements equal 3 to be blue and so on ..
I have tried to use imagesc but :
- I want the difference between the colors to be more distinct and in imagesc the hues are pretty similar when values are relativly close
- I have other matrices where some values are missing and I still want the other values to have the sam colors. If I use imagesc then the color scheme changes according to the values in the matrix.
Best Answer