Mathematical symbols in matlab

조회 수: 7 (최근 30일)
Pedro Andalon
Pedro Andalon 2019년 12월 2일
댓글: Luna 2019년 12월 3일
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