In Matlab consider a MxN matrix A with values in [-o p] with M,N as integer values and o,p as double values. The number of values on either side of origo in M and N are not necessarily even.
A is visualised using Matlabs imagesc and colorbar.
How can I force colorbar to set values from A that are close to zero as a certain color?
Please note that I do not wish to (for example) 'hard code' zero (0) as green (0 128 0), but instead I wish to use the default rgb or hsv colormap and have it adjust to the values in A whilst still keeping zero (or close to zero) in green color tone.
caxis([-300 300])
– Suever