superscript and subscript for figure 'name'
조회 수: 7 (최근 30일)
이전 댓글 표시
Dear All, Can somebody tell me how to write alphanumeric superscript and subscript in figure property 'name'.
i want to write abc^{2} and abc_{1}
I have tried figure('name','abc^{2}abc_{1});
But ^,{,},_ appears in the screen instead of superscript and subscript...
can somebody help...
thanks in advance...
댓글 수: 2
Jan
2017년 6월 29일
@srinivas: Please open a new thread for a new question. Then mention, where the text should appear. It matters if it is the figure title, a uicontrol or a text object.
답변 (3개)
Jan
2012년 11월 27일
There is no LaTeX interpreter for the figure name.
But depending on the used font, you can use Unicode characters for ^{2}^and ^{3}:
e²
This is "U+00B2" and can be reached on a Windows keyboard by Alt+0178. But I do not know a method for _{1} and if the users changes the screen font, you might get strange characters. Therefore I would avoid special characters in the name of the figure, which appears in the winfow border. It is much better to write such detailed information in the figure's content, e.g. using title() or text().
댓글 수: 0
IISc geetha
2012년 11월 27일
댓글 수: 3
Matt Fig
2012년 11월 27일
IISc, what is confusing here? Jan has told you twice that there is no command to write so that you can get what you want.
Thierry Dalon
2013년 9월 19일
편집: Thierry Dalon
2013년 9월 19일
Copy/paste the upperscript character:
figure('Name','SHM²');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!