How to print number with superscript value in Editbox GUI in matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How to print number with superscript value in Editbox GUI in matlab
0 Commenti
Risposte (2)
Jan
il 24 Lug 2017
Modificato: Jan
il 24 Lug 2017
What about_
uicontrol('Style', 'edit', 'String', ['22.4 mm', char(178)])
But this is limite to specific fonts and only some numbers. For a general method it matters, if you only want to display the super scripted text or edit it:
uitable('Data', {'<html>22.4 mm<sup>2</sup>'});
But of you edit this table cell in the GUI, the HTML control keys appear confusingly.
1 Commento
Walter Roberson
il 24 Lug 2017
Right. uicontrol 'edit' does not support HTML or tex or latex, but uitable supports (early forms of) HTML.
Walter Roberson
il 24 Lug 2017
Sorry that is not possible with uicontrol style edit or text. You would have to use Java
2 Commenti
Vedere anche
Categorie
Scopri di più su String Parsing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!