フィルターのクリア

greek letters in GUI...

5 ビュー (過去 30 日間)
Chris E.
Chris E. 2012 年 11 月 30 日
コメント済み: Walter Roberson 2018 年 8 月 24 日
Hello All, I know this should be easy but I seem to not be able to it. I would like to put '/mu' of the Greek alphabet in a text in my GUI and can not seem to be able to do it. it always prints out: /mu and not the correct mu letter.
Here is the code I use (one full line):
set(handles.EmittanceX,'String',[num2str(emit*10^6,'%2.3f'),char(177), num2str(er_emit*10^6,'%2.3f'),' /mu']);
The char(177) is the '/pm' but again I was not able to make that work. Thanks, Chris

採用された回答

Walter Roberson
Walter Roberson 2012 年 11 月 30 日
  4 件のコメント
mia saam
mia saam 2018 年 8 月 24 日
編集済み: Walter Roberson 2018 年 8 月 24 日
hi I need help
what if I have multiple lines with a Greek letter in each how can I do that in Matlab?
for example :
[x1,x2]=standard_statistical_tests(prng) % calling a function ;
the serial test (chi symbol)=x1 ;
the poker test (alpa symbol)=x2;
how can do the above example in GUI ?
Walter Roberson
Walter Roberson 2018 年 8 月 24 日
x1 = rand; x2 = rand;
S = sprintf('the serial test (\\chi) = %.2f\nthe poker test (\\alpha) = %.2f', x1, x2);
h = text(0.5, 0.5, S, 'interpreter', 'tex');

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by