How to add a greek letter as part of the xlabel

6 次查看(过去 30 天)
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 个评论
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Labels and Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by