Is there any way to put more than just regular text in a static text box, such as subscripts, superscripts or texts like x ̇ <== (x dot).

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 6 Jun. 2011

0 Stimmen

Are you referring to text() or to uicontrol with style text?
For text, you can use use tex or latex; see the example under the Interpreter property here
For uicontrols, you can use HTML on a per-line basis, such as
<HTML>&Gamma;2

3 Kommentare

Zach
Zach am 6 Jun. 2011
yeah it was the uicontrols, is there a list of these somewhere that I can use! Cause I'd also like to be able to do the accent (x dot) if possible.
Zach
Zach am 6 Jun. 2011
It's changing it in the property inspector string but when I run my GUI, <HTML>Γ<SUP>2</SUP> comes up instead of the superscript
Walter Roberson
Walter Roberson am 6 Jun. 2011
The official chart of combining accents can be found at http://unicode.org/charts/PDF/U0300.pdf
Some of these might not work with MATLAB.
x with dot can be coded as <HTML>x&x0307;

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by