Hi everyone,
new to Matlab here. I have a n x m matrix with values in the range 0.0-3.0 aprox. I want to make a plot using only 2 colors: red if value < 1 and green otherwise. I used imagesc with colormap ([1 0 0; 0 1 0]). The problem is that the colorbar divides the range from 0 to 1.5 (red) and 1.5 to 3.0 (green). I suppose it's easy, but I can't found how to change the colorbar limits, in order to get 0.0 to 1.0 = red, and 1.0 to 3.0 = green. Any help?
Thank you in advance.
FGS
new to Matlab here. I have a n x m matrix with values in the range 0.0-3.0 aprox. I want to make a plot using only 2 colors: red if value < 1 and green otherwise. I used imagesc with colormap ([1 0 0; 0 1 0]). The problem is that the colorbar divides the range from 0 to 1.5 (red) and 1.5 to 3.0 (green). I suppose it's easy, but I can't found how to change the colorbar limits, in order to get 0.0 to 1.0 = red, and 1.0 to 3.0 = green. Any help?
Thank you in advance.
FGS