フィルターのクリア

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));
  1 件のコメント
NeoBeaver
NeoBeaver 2016 年 8 月 20 日
thanks a lot! It works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrange についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by