how to plot heat map with a 2d graph?
Show older comments
I am facing some troubles
to plot this graph attached in the image , I dont know which commands to use , since it has 2d graph with a heat map
to plot this graph attached in the image , I dont know which commands to use , since it has 2d graph with a heat map 1 Comment
Dyuman Joshi
on 18 Jul 2023
Check out contourf
Answers (1)
Karan Singh
on 1 Feb 2025
0 votes
As Dyuman suggested, you can use the "contourf" or "pcolor" functions to create a heatmap over a 2D grid and overlay the boundary using "plot". Here’s more information to explore on this topic.
Karan
Categories
Find more on Color and Styling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!