Use abslolute colormap scale.

2 次查看(过去 30 天)
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?

采纳的回答

Iman Ansari
Iman Ansari 2013-4-23
编辑:Iman Ansari 2013-4-23
Hi.
[x,y]=meshgrid(-7:.02:7);
f=x.^2+y.^2;
imshow(f,[23 47])
colormap(jet)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by