Asked by Christian Spathelf
on 20 Aug 2013

Does anyone know of a way to include the permil (parts per thousand) symbol in a MATLAB plot with the LaTex interpreter?

Answer by Thomas Deneux
on 23 Oct 2013

Sign in to comment.

Answer by Ilham Hardy
on 20 Aug 2013

Edited by Ilham Hardy
on 20 Aug 2013

Jiro Doke's solution:

slabel(['5 ',char(8240)])

Christian Spathelf
on 27 Aug 2013

Thanks for the reply, but MATLAB does not accept slabel for my plot (or I am using it incorrectly). Below is an example of my code for the y-axis description:

ylabel({'$\varepsilon_{s,max}$\,[\permil]'}, 'Interpreter','latex');

Sign in to comment.

Answer by Walter Roberson
on 27 Aug 2013

Christian Spathelf
on 28 Aug 2013

Sign in to comment.

Answer by Walter Roberson
on 24 Dec 2017

Sign in to comment.

Answer by Yigal Barkan
on 25 Dec 2017

Hi Christian.

I had encountered the same problem and found a creative way to overcome it, because it seemed there's no real solution as these characters are omitted in the system.

My solution is quite straightforward. you take the location of the label after it's drawn and add a text in a proper location using the default TEX interpreter with only the permil sign. The location comes out correct in most cases, but can be adjusted if not.

ylabh=ylabel('$\mathrm{1000ln{\alpha}_{A-B}}\quad$','interpreter','latex','Color','k');

xy=ylabh.Extent;

text(xy(1)+xy(3)/2,(xy(2)+xy(4))*1,'[‰]','Rotation',90,'HorizontalAlignment','center');

-it doesn't always work with "xy(3)/2" and "xy(4)*1, so the factors (2 and 1) might need to be changed.

-note that Latex interpreter always draws in somekind of grey, therefore I specifically choose 'k' as color text color when Latex is used.

Hope this helps,

Yigal

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 0 Comments

Sign in to comment.