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

6 次查看(过去 30 天)
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.

Walter Roberson
Walter Roberson 2017-7-24
Sorry that is not possible with uicontrol style edit or text. You would have to use Java

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by