Filter löschen
Filter löschen

How to add a greek letter as part of the xlabel

10 Ansichten (letzte 30 Tage)
H LIU
H LIU am 12 Feb. 2020
Kommentiert: H LIU am 12 Feb. 2020
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 Kommentare
BN
BN am 12 Feb. 2020
Hello, Mybe it's helpul for you:
%use this:
xlabel(char(949))
H LIU
H LIU am 12 Feb. 2020
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

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

BN
BN am 12 Feb. 2020
Bearbeitet: BN am 12 Feb. 2020
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

Weitere Antworten (0)

Kategorien

Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by