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

1 回表示 (過去 30 日間)
praveen chandaliya
praveen chandaliya 2017 年 7 月 24 日
コメント済み: Walter Roberson 2017 年 9 月 18 日
How to print number with superscript value in Editbox GUI in matlab

回答 (2 件)

Jan
Jan 2017 年 7 月 24 日
編集済み: Jan 2017 年 7 月 24 日
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 件のコメント
Walter Roberson
Walter Roberson 2017 年 7 月 24 日
Right. uicontrol 'edit' does not support HTML or tex or latex, but uitable supports (early forms of) HTML.

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


Walter Roberson
Walter Roberson 2017 年 7 月 24 日
Sorry that is not possible with uicontrol style edit or text. You would have to use Java
  2 件のコメント
praveen chandaliya
praveen chandaliya 2017 年 9 月 17 日
Walter Roberson can you have java code for this problem
Walter Roberson
Walter Roberson 2017 年 9 月 18 日
Sorry, I do not have any java code for that purpose.

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

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by