フィルターのクリア

How to add a greek letter as part of the xlabel

2 ビュー (過去 30 日間)
H LIU
H LIU 2020 年 2 月 12 日
コメント済み: H LIU 2020 年 2 月 12 日
I would like to change the figure xlabel as 'I want to use \varepsilon_a', but \varepsilon cannot be recognized in my 2019b version Matlab (but \epsilon can). Any suggestions to realize this?
  2 件のコメント
BN
BN 2020 年 2 月 12 日
Hello, Mybe it's helpul for you:
%use this:
xlabel(char(949))
H LIU
H LIU 2020 年 2 月 12 日
Thanks, but then I cannot use subscript here, right? Also, I need a sentense within which there is an \varepsilon, I tried:
xlabel('Other part of the sentense', (char(949)))
it also dosen't work

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

採用された回答

BN
BN 2020 年 2 月 12 日
編集済み: BN 2020 年 2 月 12 日
Dear H LIU,
You need to type like this:
xlabel(['{Other part of the sentense}' char(949)])
Further, if you want using suberscript above (^) or below (_) you can add them like this:
xlabel(['{Other part of the sentense}^' char(949)]) % suberscript above \varepsilon
%or
xlabel(['{Other part of the sentense}_' char(949)]) % suberscript below \varepsilon
Best Regards,
Behzad
  1 件のコメント
H LIU
H LIU 2020 年 2 月 12 日
Thanks! it works!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by