I have a 20×20 matrix and want to display it as an image. In this image I want to be able to represent two properties of each cell: its value and wether or not this value is above a certain threshold (0.1).
I was thinking about this: to represent cells with a value lower than 0.1 by a green colour. The shade of green must be darker for a lower value and lighter for a higher value (closer to 0.1). If the value is larger than 0.1, it must be represented by a red colour, and its shade must also change from lighter red to darker red (lower => higher).
Is there any way to do this in matlab?