MATLAB: How to set the color bar range from blue to red

color bar

I was using a computer to analyze my data and I got a color bar range from blue to red. However, when I used another computer but same software to analyze the same file, my color bar changed. It ranges from blue to yellow instead of red. Can you help me to change this back to red?
<<
>>

Best Answer

R2015b change default color maps. You should have your code call colormap() specifically, such as
colormap(jet(256))
Related Question