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 CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by