Mathematical symbols in matlab

3 次查看(过去 30 天)
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!

采纳的回答

Luna
Luna 2019-12-2
编辑:Luna 2019-12-2
Hi,
Check this:
You should be writing in latex format.
  3 个评论
Pedro Andalon
Pedro Andalon 2019-12-3
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 2019-12-3
Your welcome :) And thanks for sharing your solution aswell.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by