Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Matt Brown
Matt Brown le 15 Oct 2015
Commenté : Phani kumar KSV le 26 Avr 2020
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'?

Réponses (1)

Walter Roberson
Walter Roberson le 15 Oct 2015
You could try replacing the '1' with char(8321) but if that does not work then you need HTML
  2 commentaires
Siqi
Siqi le 28 Mar 2018
This is easy and super helpful!
Phani kumar KSV
Phani kumar KSV le 26 Avr 2020
THANKYOU .. it worked

Connectez-vous pour commenter.

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by