MATLAB: Changing the properties of a heatmap title

customizehandleheatmapheatmap titleMATLABtitle

For standard axes, the title property is a Text object, so properties such as Interpreter and FontSize can be setted directly.
However it seems that for heatmap objects, the title property is just a string.
Is there any way to modify the title properties? (for example setting the Interpreter to latex)
(The same applies also to XLabel and YLabel)

Best Answer

Matlab's heatmap() function (released 2017a) is notoriously difficult to customize. The handles to the title and axis labels are not accessible. You can follow the advice in this answer which shows how to overlay an invisible axes on top of the heatmap where you can customize the title and axis labels as you normally would.