Is ther an easy way to create subscript text in a static text field in GUI?

1 回表示 (過去 30 日間)
Matt Brown
Matt Brown 2015 年 10 月 15 日
コメント済み: Phani kumar KSV 2020 年 4 月 26 日
I see several roundabout ways of doing this online, but they are all several years old. I was just curious if maybe this functionality was improved in more recent versions or if anyone had a better trick that doesn't involve HTML...?
Say I have a static text field with tag label 'text1' and the String value is set to 'U1 [kts]'. What is the absolute easiest way to make the '1' a subscript? Is there even an 'easy way'?

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 10 月 15 日
You could try replacing the '1' with char(8321) but if that does not work then you need HTML
  2 件のコメント
Siqi
Siqi 2018 年 3 月 28 日
This is easy and super helpful!
Phani kumar KSV
Phani kumar KSV 2020 年 4 月 26 日
THANKYOU .. it worked

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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by