How to plot heat map using MATLAB?

529 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 got it
colormap turbo
colorbar

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!