MATLAB Answers


Use abslolute colormap scale.

Asked by Raldi
on 23 Apr 2013

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?


1 Answer

Answer by Iman Ansari
on 23 Apr 2013
Edited by Iman Ansari
on 23 Apr 2013
 Accepted answer


imshow(f,[23 47])


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!