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?
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Colormaps についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!