Clear Filters
Clear Filters

Adding contour lines to heatmap

12 views (last 30 days)
Ishani Mukherjee
Ishani Mukherjee on 12 Oct 2020
Commented: KSSV on 13 Oct 2020
Using a 100X100 matrix, I have genertated this heatmap (attached fig). The deepest shade of red indicates a frequency of 25. And deep blue indicates a frequency of 0.
How will I add a line (a circle) to show encircle the area covers 90% of my data?
I want to compare multiple such figures..so such contour lines will be very useful for me.
Thanks in advance!!

Answers (1)

KSSV
KSSV on 12 Oct 2020
Read about contourf.
Or use contour with hold on. You need to specify the level and your desired color.
  4 Comments
KSSV
KSSV on 13 Oct 2020
Then what is 100*100 matrix in the question? How can you generate such plot without a matrix?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!