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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2021년 8월 12일

댓글:

2021년 8월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by