Mathematical symbols in matlab

8 visualizaciones (últimos 30 días)
Pedro Andalon
Pedro Andalon el 2 de Dic. de 2019
Comentada: Luna el 3 de Dic. de 2019
Hi everyone,
I wrote a program with GUI and I can't display a mathematical symbol in a static text field, is this possible?
Thank you!

Respuesta aceptada

Luna
Luna el 2 de Dic. de 2019
Editada: Luna el 2 de Dic. de 2019
Hi,
Check this:
You should be writing in latex format.
  3 comentarios
Pedro Andalon
Pedro Andalon el 3 de Dic. de 2019
Found the answer thanks for replying back to my question.
I am attaching my solution in case it can help somebody else.
option=get(handles.popupmenu1, 'Value');
a= '+';
b= '-';
c= '*';
d= '/';
e= '^';
if option==2
set(handles.text3,'String',a);
end
if option==3
set(handles.text3,'String',b);
end
if option ==4
set(handles.text3,'String',c);
end
if option==5
set(handles.text3,'String',d);
end
if option==6
Luna
Luna el 3 de Dic. de 2019
Your welcome :) And thanks for sharing your solution aswell.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox 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