hi
how can i enter latex symbol (greek letter rho this time) in the labels of a plot? (first order bessel function)
yl={'J_{1}(\rho)','$'};
xl={'\rho','$'};
ylabel(yl,'interpreter','latex')
ylabel(xl,'interpreter','latex')

 採用された回答

Peng Li
Peng Li 2020 年 4 月 3 日

1 投票

You need to have the leading and ending symbol $.
e.g., ylabel('$J_{1}(\rho)$','interpreter','latex')

1 件のコメント

Simo
Simo 2020 年 4 月 3 日
it works
thanks

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

その他の回答 (1 件)

Lazaros
Lazaros 2025 年 4 月 22 日

0 投票

Matlab basically understands all the basic symbols that the amsmath package uses, so you can include subscript and superscript, as well as functions like \cos and \frac{}{}. The comment above covers you, but I have some additional examples in this video, https://www.youtube.com/watch?v=5TwChCWGllI

カテゴリ

ヘルプ センター および File ExchangeLabels and Annotations についてさらに検索

タグ

質問済み:

2020 年 4 月 3 日

回答済み:

2025 年 4 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by