필터 지우기
필터 지우기

How to change color bar for images function?

조회 수: 17 (최근 30일)
NeoBeaver
NeoBeaver 2016년 8월 19일
댓글: NeoBeaver 2016년 8월 20일
Dear all:
Any one could help me with this problem:
I used the following piece of code to generate a heat map for a matrix:
clf
imagesc(full_B);
colorbar;
The color bar default look like this:
I am thinking about changing the color bar into something like rainbow.
How should I be doing it?
Thanks! Ruming

채택된 답변

Image Analyst
Image Analyst 2016년 8월 19일
Try this
imagesc(full_B);
colorbar;
colormap(jet(256));
or even better:
imshow(full_B, []);
colorbar;
colormap(jet(256));

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by