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

18 ビュー (過去 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 Center および File ExchangeLaTeX についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by