I have matrix with dimensions [4096, 181], I want to draw a heatmap for such matrix as in the following figure. How can i do so?

 採用された回答

Chunru
Chunru 2021 年 8 月 12 日
編集済み: Chunru 2021 年 8 月 12 日

1 投票

a = peaks(40);
imagesc(a)
colormap(hsv(512))
colorbar

4 件のコメント

Abdelwahab Afifi
Abdelwahab Afifi 2021 年 8 月 12 日
編集済み: Abdelwahab Afifi 2021 年 8 月 12 日
Is it possible to adjust the colorbar to include the red colour?
Chunru
Chunru 2021 年 8 月 12 日
use colormap as shown above
Abdelwahab Afifi
Abdelwahab Afifi 2021 年 8 月 12 日
I noticed that there is a red colour at the top and bottom of the colour map. this causes confusion. is it possible to limit the colour map exactly as in the pic I attached?
Abdelwahab Afifi
Abdelwahab Afifi 2021 年 8 月 12 日
I got it
colormap turbo
colorbar

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeColor and Styling についてさらに検索

製品

リリース

R2021a

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by