Unrecognized property 'Title' in heatmap function

6 views (last 30 days)
I'm trying to run the following code in an empty workspace, which is a 1:1 copy from the Matlab documentation for the heatmap function:
h = heatmap([1 3 5; 2 4 6]);
h.Title = 'My Heatmap Title';
When running the code I get the error:
Unrecognized property 'Title' for class 'matlab.graphics.primitive.Image'.
Why and how can I circumvent this? I have quite a large number of large scripts using the inbuilt heatmap function to create specific heatmaps and to plot them via some other scripts. It used to work just some months ago and now it doesn't because of this error, and I can't explain it (and I also don't want to change all my old scripts if it can be easily circumvented).
I'd be really thankful for any input!

Accepted Answer

Walter Roberson
Walter Roberson on 22 Jul 2021
which -all heatmap
I suspect that you are using a third party heatmap function
  1 Comment
Martin Wukovnig
Martin Wukovnig on 22 Jul 2021
Thank you, you are right! I had a custom function 'heatmap' in my path without remembering so. Thanks a lot!

Sign in to comment.

More Answers (0)

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!