MATLAB Answers

How can I print the heatmap as grayscale?

32 views (last 30 days)
도현 김
도현 김 on 12 Apr 2021
Commented: 도현 김 on 15 Apr 2021
A = rand(5)
heatmap(A, option)
I want to see heatmap in grayscale.
OR
Can I use 'saveas' to save in grayscale?

Accepted Answer

J Chen
J Chen on 12 Apr 2021
heatmap(A)
colormap(gray)
  4 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!