Is there a way to get a subscript or a superscript in a guide text screen

조회 수: 3 (최근 30일)
Robert Garneau
Robert Garneau 2015년 7월 18일
댓글: Star Strider 2015년 7월 24일
I'm creating a panel using guide. I want to be able to show 10^-6 as a superscript rather than use ^-6. How do I do that.

답변 (1개)

Star Strider
Star Strider 2015년 7월 18일
편집: Star Strider 2015년 7월 18일
Using the TeX or LaTeX interpreter, enclose the exponent in curly brackets:
10^{-6}
similarly for subscripts:
x_{2,3}
  댓글 수: 2
Robert Garneau
Robert Garneau 2015년 7월 24일
This works on the screen. How do you write text to a file with superscripts and subscripts.
Star Strider
Star Strider 2015년 7월 24일
You don’t, unless the file is a LaTeX document. Word could probably do it as well, but you have to create the requisite macros, not something I’ve ever done or want to do. So you’re restricted to whatever is in the font you’re using. Even with that, it would likely require you to use Unicode characters, and that may be a challenge as well.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by