How to Use the Latex \bm for Math Symbols in ylabel?

24 visualizaciones (últimos 30 días)
Kareem Elgindy
Kareem Elgindy el 25 de Nov. de 2021
Comentada: dpb el 26 de Nov. de 2021
Say we want to display x as a bold italics math symbol in ylabel. Is this possible?

Respuesta aceptada

dpb
dpb el 25 de Nov. de 2021
Can do in regular text as
ylabel('$$\textit{\textbf{X}}$$','Interpreter','latex')
I don't think anybody has ever figured out how to use other packages with the TMW-implemented LaTeX in MATLAB for the math part...
  1 comentario
dpb
dpb el 26 de Nov. de 2021
Further experimentation shows that
ylabel("$$X(\omega) = \sum_{n=-\infty}^{\infty} x[n] e^{-j\omega n}$$","Interpreter","latex")
is rendered correctly so at least some of the math expressions are available.
But, while it does not error,
ylabel("$$\boldmath{X}$$",'Interpreter','latex')
has no discernible effect on the output

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by