From: Nash Dima on
Doug Schwarz <see(a)sig.for.address.edu> wrote in message <see-5CACE8.09253028102007(a)71-129-133-66.dollamir.com>...
> In article <fg1mnr$foh$1(a)fred.mathworks.com>,
> "Jonas " <joslaa02(a)student.umu.se> wrote:
>
> > "Dan " <dpcore(a)yahoo.com> wrote in message <fg0l33
> > $b7u$1(a)fred.mathworks.com>...
> > > "Jonas " <joslaa02(a)student.umu.se> wrote in message
> > > <fg0dqh$lt9$1(a)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/
> > > loadFile.do?objectId=10743&objectType=file
> > >
> > > 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
From: Nash Dima on
Doug Schwarz <see(a)sig.for.address.edu> wrote in message <see-5CACE8.09253028102007(a)71-129-133-66.dollamir.com>...
> In article <fg1mnr$foh$1(a)fred.mathworks.com>,
> "Jonas " <joslaa02(a)student.umu.se> wrote:
>
> > "Dan " <dpcore(a)yahoo.com> wrote in message <fg0l33
> > $b7u$1(a)fred.mathworks.com>...
> > > "Jonas " <joslaa02(a)student.umu.se> wrote in message
> > > <fg0dqh$lt9$1(a)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/
> > > loadFile.do?objectId=10743&objectType=file
> > >
> > > 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
From: Yair Altman on
> 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?

Of course it is possible: http://undocumentedmatlab.com/blog/customizing-matlab-labels/

Yair Altman
http://UndocumentedMatlab.com