how can I write greek letters in static text?

2 visualizaciones (últimos 30 días)
Jacopo
Jacopo el 20 de Mayo de 2014
Comentada: Friedrich el 27 de Mayo de 2014
how can I write greek letters in static text? because writing \alpha in the static text when I run the GUI appears written "\alpha"...

Respuesta aceptada

Friedrich
Friedrich el 20 de Mayo de 2014
Hi,
see here.
  4 comentarios
Jacopo
Jacopo el 23 de Mayo de 2014
no. I copied the full piece of code in the link, specifically:
handles.laxis = axes ('Parent', hObject, 'units', 'normalized', 'position', [0 0 1 1], 'visible', 'off');
lbls = findobj (hObject, '-regexp', 'tag', 'latex_ *');
for i = 1: length (lbls)        l = lbls (i);        % Get current text, position and tag        set (l, 'units', 'normalized');        s = get (l, 'string');        p = get (l, 'position');        t = get (l, 'tag');        % Remove the Uicontrol        delete (l);        % Replace it with a TEXT object        handles. (t) = text (p (1), p (2), s, 'interpreter', 'latex'); end
If I have to write something different, you can write exactly what I have to write in code?
Friedrich
Friedrich el 27 de Mayo de 2014
I think you missed the last sentence
"Further in GUIDE give the Static Text boxes which need to be rendered using LaTeX, a 'Tag' which starts with latex_."

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Labels and Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by