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!