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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by