Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: greek symbols in GUI
Date: Thu, 12 Aug 2010 13:02:06 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 43
Message-ID: <i40rce$qus$1@fred.mathworks.com>
References: <fg0dqh$lt9$1@fred.mathworks.com> <fg0l33$b7u$1@fred.mathworks.com> <fg1mnr$foh$1@fred.mathworks.com> <see-5CACE8.09253028102007@71-129-133-66.dollamir.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1281618126 27612 172.30.248.35 (12 Aug 2010 13:02:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 12 Aug 2010 13:02:06 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:661384

Doug Schwarz <see@sig.for.address.edu> wrote in message <see-5CACE8.09253028102007@71-129-133-66.dollamir.com>...
> In article <fg1mnr$foh$1@fred.mathworks.com>,
>  "Jonas " <joslaa02@student.umu.se> wrote:
>
> > "Dan " <dpcore@yahoo.com> wrote in message <fg0l33
> > $b7u$1@fred.mathworks.com>...
> > > "Jonas " <joslaa02@student.umu.se> wrote in message
> > > <fg0dqh$lt9$1@fred.mathworks.com>...
> > > > Hello, I'm building a GUI and I like to know how to get
> > a
> > > > greek symbol for example in a static text or in a push
> > > > button. I'd then like to write
> > > >
> > > > set(handles.static_text,'String','\alpha')
> > > >
> > > > to display the greek letter alpha but this doesn't
> > work.
> > > > Thanks!
> > >
> > > There is a submission on the file exchange for doing this
> > > at http://www.mathworks.com/matlabcentral/fileexchange/
> > >
> > > Dan
> >
> > Yes, that is one way to do it, although it is easy to run
> > the function i wonder if there is a simpler way to do it?
>
>
> If all you want is Greek letters then you can just use the Symbol font:
>
>   set(handles.static_text,'String','a','FontName','symbol')
>
> --
> Doug Schwarz
> dmschwarz&ieee,org
> Make obvious changes to get real email address.

Hi,
Is it possible to make a string for  static txt not only with greek  letters, ie  Impedance (&#937;) using the symbol font? Any other alternatives?

Thanks