MATLAB: Remove data labels in a heatmap

heatmapMATLAB

I am using a heatmap containing a grid of 1000×1000 points. The data values are displayed on the x and y axis, which is too much; they overlap since there are too many. I would like to remove all data and keep only the xlabel, ylable, and title with a larger font size. I am not sure how to change the font size either. I tried several things without luck.
Here is my command where "a" is the 1000×1000 matrix.
heatmap(a,'xlabel','\mu','ylabel','\nu','title',['Frequency of (\mu, \nu) for ','\epsilon = ',num2str(epsilon)]);
Thank you.

Best Answer

If you just want to remove them, try this:
hmh = heatmap(a,'xlabel','\mu','ylabel','\nu','title',sprintf('Frequency of (\\mu, \\nu) for \\epsilon = %.2f',epsilon));
Ax = gca;
Ax.XDisplayLabels = nan(size(Ax.XDisplayData));
Ax.YDisplayLabels = nan(size(Ax.YDisplayData));
They don’t appear to have any properties specific to them (such as 'FontSize') that you can change.