How to change color settig for imagesc command?
72 次查看(过去 30 天)
显示 更早的评论
Hi everybody, I have wrote a program in MATLAB and when I execute my program on two different computers, the colors of the output figures are not the same, see the attached two figures. Does anyone knows how can I solve the problem? I am using two different versions of matlab. The first image (named CP1) is created by MATLAB 2012a and the second image (named CP2) is created by MATLAB 2012b. Thanks for your response.
0 个评论
采纳的回答
Walter Roberson
2015-11-17
imagesc() makes use of the current colormap . You should choose a particular colormap to use, such as
colormap(hot(256))
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Blue 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!