Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

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

From: Liqing

Date: 11 Apr, 2008 02:58:01

Message: 1 of 5

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

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

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 11 Apr, 2008 03:51:15

Message: 2 of 5

In article <ftmk3p$kv9$1@fred.mathworks.com>,
Liqing <liqingj@gmail.com> wrote:
>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?

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

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

From: Liqing

Date: 11 Apr, 2008 13:38:01

Message: 3 of 5

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’s
low tech, but it gets the job done for users who need to add
this one symbol quickly.
---------------




roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <ftmn7j$nma$1@canopus.cc.umanitoba.ca>...
> In article <ftmk3p$kv9$1@fred.mathworks.com>,
> Liqing <liqingj@gmail.com> wrote:
> >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?
>
> 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

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

From: Loren Shure

Date: 13 Apr, 2008 14:19:33

Message: 4 of 5

In article <ftnpjp$nus$1@fred.mathworks.com>, liqingj@gmail.com says...
> Hi Walter,
>=20
> Thank you very much. From the link you provided, I found the
> answer as below:
>=20
> --------------
> # Stephen Romaniello replied on February 26th, 2008 at
> 11:52 am :
>=20
> 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’s
> low tech, but it gets the job done for users who need to add
> this one symbol quickly.
> ---------------
>=20
>=20
>=20
>=20
> roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
> message <ftmn7j$nma$1@canopus.cc.umanitoba.ca>...
> > In article <ftmk3p$kv9$1@fred.mathworks.com>,
> > Liqing <liqingj@gmail.com> wrote:
> > >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.
> >=20
> > >Anyone happens to know that?
> >=20
> > 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:
> >=20
> >
> http://blogs.mathworks.com/loren/2007/12/11/making-pretty-graphs/
> > --=20
> > "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
>=20
>=20
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)])


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

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

From: tdeneux@gmail.com

Date: 23 Oct, 2013 09:04:02

Message: 5 of 5

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.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us