필터 지우기
필터 지우기

How to change color settig for imagesc command?

조회 수: 59 (최근 30일)
josef vahab
josef vahab 2015년 11월 17일
답변: Walter Roberson 2015년 11월 17일
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.

채택된 답변

Walter Roberson
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개)

카테고리

Help CenterFile Exchange에서 Display Image에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by