MATLAB: How to add a greek letter as part of the xlabel

xlabel greek-letter

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?

Best Answer

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