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:
parts per mil (%o) symbol?

Subject: parts per mil (%o) symbol?

From: justabovemaine maine

Date: 3 Jun, 2009 15:14:01

Message: 1 of 5

quick question: anyone know how to add the 'parts per mil' symbol (%o) to an axis (without typing an 'o' after '%' )?

Subject: parts per mil (%o) symbol?

From: Jan Simon

Date: 3 Jun, 2009 17:28:01

Message: 2 of 5

Dear justabovemaine maine!

> quick question: anyone know how to add the 'parts per mil' symbol (%o) to an axis (without typing an 'o' after '%' )?

Depending on the applied font, CHAR(137) could help.

Good luck, Jan

Subject: parts per mil (%o) symbol?

From: justabovemaine maine

Date: 3 Jun, 2009 19:05:19

Message: 3 of 5

"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <h06br1$1qc$1@fred.mathworks.com>...
> Dear justabovemaine maine!
>
> > quick question: anyone know how to add the 'parts per mil' symbol (%o) to an axis (without typing an 'o' after '%' )?
>
> Depending on the applied font, CHAR(137) could help.
>
> Good luck, Jan

Thanks, Jan!

I tried using char(137) but just get a blank string. Any recommendations which font to use? i tried, ylabel(char(137),'fontname','arial') but w/ no luck. Thanks again for your help.

Subject: parts per mil (%o) symbol?

From: Jan Simon

Date: 3 Jun, 2009 22:22:01

Message: 4 of 5

Dear justabovemaine maine!

> I tried using char(137) but just get a blank string. Any recommendations which font to use? i tried, ylabel(char(137),'fontname','arial') but w/ no luck.

Damn. It works well in Matlab 5.3 and 6.5.
Now some characters are not longer available, which is not a problem of the font. Try in the command window:
  char(32:255)
The results differ between 6.5 and 2009a even for the same font.

After seeking the Matlab doc (you've done already, I assume...), I'm disappointed. The best solution, I can find is:
  ylabel('^0/_{00}', 'Interpreter', 'TeX')
The \textperthousand command does not work with the LaTeX interpreter, because the textcomp package seems to be missing. To be true, I'm quite confused by the LaTeX interpreter feature, although the TeX interpreter is really clear to me.

Good luck, Jan

Subject: parts per mil (%o) symbol?

From: Jiro Doke

Date: 7 Jun, 2009 05:45:02

Message: 5 of 5

"justabovemaine maine" <justabovemaine@gmail.com> wrote in message <h063vp$b3r$1@fred.mathworks.com>...
> quick question: anyone know how to add the 'parts per mil' symbol (%o) to an axis (without typing an 'o' after '%' )?

char(8240) should work:

ylabel(char(8240))

jiro

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