Using superscript, subscript or greek letters in app designer

16 ビュー (過去 30 日間)
asfsag gasfdas
asfsag gasfdas 2018 年 9 月 17 日
編集済み: Joel Riggs 2018 年 9 月 29 日
Hi every one,I have a problem with app designer. Currently I'm designing an standalone application with app designer. I want to use a drop down menu so user can select the unit. For example the first line in drop down is CFM, the second should be m^3/hr and etc. The problem is I don't know how display subscript or superscript in app designer windows. I created an standalone application with GUI before. I used HTML code for this purpose, for example HTML m<SUP>3</SUP>/h</HTML>, but it seems it doesn't work in app designer. I really appreciate if anyone can help me with this issue.

回答 (1 件)

Joel Riggs
Joel Riggs 2018 年 9 月 29 日
編集済み: Joel Riggs 2018 年 9 月 29 日
Unfortunately App Designer doesn't seem to support the use of Tex or Latex interpreters like it does in figures and plots within the app.
The workaround seems to be using char() with the Unicode code for the character you want.
For example, to get
use:
function startupFcn(app)
app.DropDown.Items = {['m' char(179) '/hr'],['ft' char(179) '/' char(956) 's']};
end
The link below shows how to edit the startupFcn() so component properties can be changed once all components have been loaded.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by