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

조회 수: 21 (최근 30일)
Kareem Elgindy
Kareem Elgindy 2021년 11월 25일
댓글: dpb 2021년 11월 26일
Say we want to display x as a bold italics math symbol in ylabel. Is this possible?

채택된 답변

dpb
dpb 2021년 11월 25일
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
dpb
dpb 2021년 11월 26일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by