MATLAB: TickLabelInterpreter axis ticks bold

axis ticksboldlatex interperterMATLAB

I want to apply latex interpreter to axis numbers set(gca,'TickLabelInterpreter','latex'); But I can not make the axis numbers bold, set(gca,'fontweight','bold') doesn't work. Does anybody know how to solve this problem?

Best Answer

With the LaTeX interpreter you need to define the label as '{\boldmath$\alpha$}' to get a bold face font.
[EDITED]:
axesH = gca;
axesH.XAxis.TickLabelInterpreter = 'latex'
axesH.XAxis.TickLabelFormat = '\\textbf{%g}';
Two \ are required, because at first sprintf is applied and then the LaTeX interpreter.
Related Question