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

parts per mil (%o) symbol?

328 views
Skip to first unread message

justabovemaine maine

unread,
Jun 3, 2009, 11:14:01 AM6/3/09
to
quick question: anyone know how to add the 'parts per mil' symbol (%o) to an axis (without typing an 'o' after '%' )?

Jan Simon

unread,
Jun 3, 2009, 1:28:01 PM6/3/09
to
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

justabovemaine maine

unread,
Jun 3, 2009, 3:05:19 PM6/3/09
to
"Jan Simon" <matlab.T...@nMINUSsimon.de> wrote in message <h06br1$1qc$1...@fred.mathworks.com>...

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.

Jan Simon

unread,
Jun 3, 2009, 6:22:01 PM6/3/09
to
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

Jiro Doke

unread,
Jun 7, 2009, 1:45:02 AM6/7/09
to
"justabovemaine maine" <justabo...@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

0 new messages