How to plot heat map using MATLAB?

178 次查看(过去 30 天)
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
a = peaks(40);
imagesc(a)
colormap(hsv(512))
colorbar
  4 个评论
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?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by