Heatmap inside custom 2d geometry shape

Hi,
I have a specific 2d geometry of an object with multiple fields. I also know the data values for each field. How can I plot a heatmap with my values inside the fileds using the shape of my 2d object. I could get the CAD of the object for example, create a smiple drawing myself, or imitate my 2d shape with blocks or somehow else ....
Thanks.

1 Comment

Are you saying you just want to make a heat map with a nonrectangular mask?

Sign in to comment.

Answers (0)

Categories

Products

Release

R2024b

Asked:

on 18 Jun 2025

Commented:

on 18 Jun 2025

Community Treasure Hunt

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

Start Hunting!