Use abslolute colormap scale.
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi everyone, I have a quick question. Lets assume that we have a two dimentional matrix and each of its values represents the temperature of that point in a rectangular plate. How can i plot that matrix so as values of 23 and below are plotted with a blue color and values of 47 and up are ploted in red. The inbetween values are plotted using gradiends of those colors just as the normal colormap would?
0 commentaires
Réponse acceptée
Iman Ansari
le 23 Avr 2013
Modifié(e) : Iman Ansari
le 23 Avr 2013
Hi.
[x,y]=meshgrid(-7:.02:7);
f=x.^2+y.^2;
imshow(f,[23 47])
colormap(jet)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Colormaps dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!