How to make bold font for axis labe with latex interpreter

20 ビュー (過去 30 日間)
Fauzanul
Fauzanul 2024 年 7 月 16 日
コメント済み: Fauzanul 2024 年 7 月 18 日
Hey i try to make my axis label that contain latex interpreter in bold style. I have try some suggestion befor but none of them seems to works. Anybody have a clue?
This is my line
ylabel('$|\frac{\ddot{X}(i\omega)_{2}}{F(i\omega)_{4}}|$ ($\frac{mm/s^2}{N}$)', 'Interpreter','Latex')

採用された回答

Himanshu
Himanshu 2024 年 7 月 16 日
Hey Fauzanul,
You can use the '\mathbf' command for specific parts of the string that need to be bold. Here is an example of how to use it:
figure;
plot(1:10);
ylabel('$\mathbf{|\frac{\ddot{X}(i\omega)_{2}}{F(i\omega)_{4}}|}$ $\mathbf{(\frac{mm/s^2}{N})}$', 'Interpreter', 'latex');
Hope this helps!
  1 件のコメント
Fauzanul
Fauzanul 2024 年 7 月 18 日
it works, thanks a lot himanshu

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


Translated by