# How do I obtain bold formatted mathematical expressions in MATLAB using LaTeX?

463 views (last 30 days)
MathWorks Support Team on 27 Jun 2009
Edited: MathWorks Support Team on 6 Jan 2023 at 18:09
I want to place mathematical expressions in bold format on my plot. I have tried to use the {\bf} and {\textbf} declarations, but I receive an error and the expression does not get displayed. I am using the following commands to obtain the bold mathematical expressions:
text('position',[0.5 0.5],'Interpreter','latex','String','$\bf{\alpha}$')
This gives me the following error:
Warning: Unable to interpret TeX string. Undefined control sequence.
The following command uses {\textbf} instead of {\bf}
text('position',[0.5 0.5],'Interpreter','latex','String','$\textbf{\alpha}$')
but this results in the following error:

### Categories

Find more on Mathematics and Optimization in Help Center and File Exchange

R14SP1

### Community Treasure Hunt

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

Start Hunting!