Effacer les filtres
Effacer les filtres

How to convert values to specific predefined colors and view the matrix

1 vue (au cours des 30 derniers jours)
New
New le 9 Avr 2011
Hi,
I would like to attribute one specific color to each of 30 different values I have in a matrix (400X1000)and get it back as somekind of heatmap. For ex. 1= blue, 2=red, 3=cyan... How do I do that? I will just specify that I do not want to use any gradient of colors...
Thank you in advance

Réponses (1)

bym
bym le 9 Avr 2011
try
imagesc(yourMatrix)

Catégories

En savoir plus sur Data Distribution Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by