Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to input 'per mil (%o) character?

699 views
Skip to first unread message

Liqing

unread,
Apr 10, 2008, 10:58:01 PM4/10/08
to
I'm trying to use 'text' function to add the sign of '%o'
(per thousand, or per mil) to the figure. I searched the the
help but did not find it.

Anyone happens to know that?


Thank you.

LQ

Walter Roberson

unread,
Apr 10, 2008, 11:51:15 PM4/10/08
to
In article <ftmk3p$kv9$1...@fred.mathworks.com>,

Search through the following (there are several responses, so
keep reading.) As you are using the mathworks newsreader, you
will likely have to splice the following URL together as that
reader will likely cut it into two lines:

http://blogs.mathworks.com/loren/2007/12/11/making-pretty-graphs/
--
"Whenever there is a hard job to be done I assign it to a lazy
man; he is sure to find an easy way of doing it."
-- Walter Chrysler

Liqing

unread,
Apr 11, 2008, 9:38:01 AM4/11/08
to
Hi Walter,

Thank you very much. From the link you provided, I found the
answer as below:

--------------
# Stephen Romaniello replied on February 26th, 2008 at
11:52 am :

With regard to the per mille symbol for MatLab under
Windows, an easy solution is to paste the per mille
character from the appropriate font family in the Character
Map directly into the string text in the figure window. It&#8217;s
low tech, but it gets the job done for users who need to add
this one symbol quickly.
---------------


robe...@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <ftmn7j$nma$1...@canopus.cc.umanitoba.ca>...

Loren Shure

unread,
Apr 13, 2008, 10:19:33 AM4/13/08
to
In article <ftnpjp$nus$1...@fred.mathworks.com>, liq...@gmail.com says...
Later in that post:

# Jiro Doke replied on April 11th, 2008 at 10:16 pm [edit]:

LQ,

Is ?per thousand? the same thing as ?per mille??

Then, this will do:

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


--
Loren
http://blogs.mathworks.com/loren/

tde...@gmail.com

unread,
Oct 23, 2013, 5:04:02 AM10/23/13
to
For me, char(8240) does not work in a graph, neither latex symbols \permil or \textperthousand (they require respectively packages wasysym and textcomp, i gues it's not possible to load a latex package into Matlab).

But the following solution is not too bad: text('5{^{\fontsize{7}o}}/{\fontsize{7}oo}')
It works with the default 'tex' interpreter.
0 new messages