Thread Subject: scientific symbol

Subject: scientific symbol

From: Ryan Underwood

Date: 27 Dec, 2007 02:15:41

Message: 1 of 4

Anyone know how to type scientific symbol such as µ in
matlab editor ?

Subject: scientific symbol

From: Huy

Date: 27 Dec, 2007 02:50:19

Message: 2 of 4

"Ryan Underwood" <ryan8200@hotmail.com> wrote in message
<fkv1sd$edd$1@fred.mathworks.com>...
> Anyone know how to type scientific symbol such as µ in
> matlab editor ?
I don't think that we could type scientific symbol in MATLAB
EDITOR. However,

MATLAB supports TeX/LaTeX for displaying equations
  and other mathematical expressions in the MATLAB figure
  window.

Refer to : tex

and this address

http://www.mathworks.com/access/helpdesk/help/techdoc/
index.html?/access/helpdesk/help/techdoc/ref/
text_props.html&http://www.google.com/
search?hl=en&client=opera&rls=en&hs=v0N&q=matlab+latex+mu+lambda+Text+Properties&btnG=Search


Simple example:

mytexstr = '\mu';
text('string',mytexstr,...
    'fontsize',40,...
    'units','norm',...
    'pos',[.5 .5]);

Anh Huy Phan
RIKEN - BSI
 

Subject: scientific symbol

From: Huy

Date: 27 Dec, 2007 02:55:35

Message: 3 of 4

"Ryan Underwood" <ryan8200@hotmail.com> wrote in message
<fkv1sd$edd$1@fred.mathworks.com>...
> Anyone know how to type scientific symbol such as µ in
> matlab editor ?
I don't think that we could type scientific symbol in MATLAB
EDITOR. However,

MATLAB supports TeX/LaTeX for displaying equations
  and other mathematical expressions in the MATLAB figure
  window.

Refer to : tex

and this address

http://www.mathworks.com/access/helpdesk/help/techdoc/
index.html?/access/helpdesk/help/techdoc/ref/
text_props.html&http://www.google.com/
search?hl=en&client=opera&rls=en&hs=v0N&q=matlab+latex+mu+lambda+Text+Properties&btnG=Search


Simple example:

mytexstr = '\mu';
text('string',mytexstr,...
    'fontsize',40,...
    'units','norm',...
    'pos',[.5 .5]);

Anh Huy Phan
RIKEN - BSI
 

Subject: scientific symbol

From: Frank

Date: 27 Dec, 2007 05:32:33

Message: 4 of 4

"Ryan Underwood" <ryan8200@hotmail.com> wrote in message
<fkv1sd$edd$1@fred.mathworks.com>...
> Anyone know how to type scientific symbol such as µ in
> matlab editor ?

Just as you did here (alt+0181) = µ = char(0181). You need
to be sure the fonts you're using in the Editor/Debugger
and the Command Window support the symbols you want to
use. See the "Character Map" utility in Windows for the
full set and their codes. You can also write a script to
print out the full ascii control and character set from 0
to 255.

I gave some thought to using the extended unicode character
set, found out I couldn't (at least easily), and let it go
at that. I doubt you can use the unicode character set in
the editor, but you can easily use all the ascii
characters. (The only documentation I can find for using
unicode characters are "native2unicode" and
"unicode2native".)



Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
editor Star Strider 27 Dec, 2007 00:35:06
character sets Star Strider 27 Dec, 2007 00:35:06
ascii Star Strider 27 Dec, 2007 00:35:06
unicode Star Strider 27 Dec, 2007 00:35:06
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com