Display data in matrix with two different colour scales, depending on cell value
Afficher commentaires plus anciens
Hi
I have a 20x20 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?
Best regards
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur White dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!