How to print number with superscript value in Editbox GUI in matlab

2 vues (au cours des 30 derniers jours)
praveen chandaliya
praveen chandaliya le 24 Juil 2017
Commenté : Walter Roberson le 18 Sep 2017
How to print number with superscript value in Editbox GUI in matlab

Réponses (2)

Jan
Jan le 24 Juil 2017
Modifié(e) : Jan le 24 Juil 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 commentaire
Walter Roberson
Walter Roberson le 24 Juil 2017
Right. uicontrol 'edit' does not support HTML or tex or latex, but uitable supports (early forms of) HTML.

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 24 Juil 2017
Sorry that is not possible with uicontrol style edit or text. You would have to use Java
  2 commentaires
praveen chandaliya
praveen chandaliya le 17 Sep 2017
Walter Roberson can you have java code for this problem
Walter Roberson
Walter Roberson le 18 Sep 2017
Sorry, I do not have any java code for that purpose.

Connectez-vous pour commenter.

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by