How to plot heat map using MATLAB?

289 views (last 30 days)
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?

Accepted Answer

Chunru
Chunru on 12 Aug 2021
Edited: Chunru on 12 Aug 2021
a = peaks(40);
imagesc(a)
colormap(hsv(512))
colorbar
  4 Comments
Abdelwahab Afifi
Abdelwahab Afifi on 12 Aug 2021
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?

Sign in to comment.

More Answers (0)

Categories

Find more on Colormaps in Help Center and File Exchange

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!