How can I put the epsilon letter (like the symbol "3" but in the other direction) in xlabel of plot of MatLab R2014b? I try to put '\epsilon' and 'varepsilon' but it doesn't work. Thanks in advance!

50 views (last 30 days)
I want to make a plot force vs strain but in the title of the xlabel "strain" I need to put the Greek symbol '\epsilon'.
xlabel('Deformación \epsilon [\mum/m]'); Does not work.--> It appears a letter like "e" I need like 3 but turned.
xlabel('Deformación \varepsilon [\mum/m]'); Does not work.
xlabel('Deformación \epsiv [\mum/m]'); Does not work too.
Others greeks letters works correctly.
I think that matlab R2014 doesn't have it.=(

Accepted Answer

dpb
dpb on 25 Feb 2015
What interpereter is set? The following works fine here...
>> hXL=xlabel('\bf\epsilon','fontsize',14);
>> get(hXL,'interpreter')
ans =
tex
>>
Now, granted, I've got R2012b but I can't imagine support has regressed since...
  7 Comments
Jose Verde
Jose Verde on 25 Feb 2015
Sorry for the inconveniences, sir and thank you for your help! If you know or you find the way to show "ɛ" and no "є" tell me please!
dpb
dpb on 25 Feb 2015
Matlab and TeX/LaTex seem to have an uneasy alliance; despite the link in the TMW doc to the TeX web site it appears that they've munged on it some in the implementation within Matlab. Unfortunately, they've also done zero documentation of what it is they have done...
I have only two recommendations--
  1. Try official support at www.mathworks.com and see it they'll tell you how to get the additional fonts installed, or
  2. Start at Yair's blog site at this thread (now several years old, unfortunately) and see if you have any better luck in divining the proper incantations than previous have--<http://undocumentedmatlab.com/blog/matlab-latex-interface>

Sign in to comment.

More Answers (1)

Mike Garrity
Mike Garrity on 25 Feb 2015
Edited: Mike Garrity on 25 Feb 2015
Starting in R2014b, you can also use all of the Unicode characters . For example, since small epsilon is 949 in Unicode , I could do this:
xlabel(['Is ', char(949), ' what you want?'])
The one caveat with that is that the font you're using has to include glyphs any of the Unicode characters you want to use. That's usually not an issue for something common like epsilon, but it can be an issue for some of the more obscure characters.

Categories

Find more on Labels and Annotations in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!