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!

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

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

Thanks for you time!
In my matlab it doesn't work. In this picture http://vcampus.co/media/image/standard/2438.jpg you can find that there are \epsilon and \varepsilon. Well, all the others \varletters work. \varepsilon doesn't. Whend I put \epsilon I see the corresponding letter of the before picture.
I don't know what this image refers to, but \varepsilon is not listed in the special characters supported by tex in the documentation of xlabel.
So, yes, \varepsilon is not going to work.
Sorry, I didn't explain well. I know that \varepsilon is not listed, I only put like example for make an idea of the symbol. In the documentation of xlabel apears "ɛ" (and I want this symbol) but when I write hXL=xlabel('\bf\epsilon','fontsize',14); the plot shows "є", but I need "ɛ" =(
Ah, yes, I get the same behaviour. And yes, that's not really the question you asked.
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!
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)

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.

2 Comments

Thank you so much Mike! It is just what I wanted! It worked perfectly! Saludos!
I'm commented before but i just edited.
It works perfect for text() as well.

Sign in to comment.

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Products

Asked:

on 25 Feb 2015

Edited:

on 21 Sep 2015

Community Treasure Hunt

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

Start Hunting!