필터 지우기
필터 지우기

Superscript/subscript in 'insertText' string

조회 수: 1 (최근 30일)
YT
YT 2018년 4월 25일
댓글: YT 2018년 4월 26일
I'm overlaying some text over an image, but `insertText` doesn't interpret subscript/superscript for some reason.
IT = insertText(I,[0 50],['Hold_{new} = ' num2str(i)],'AnchorPoint','LeftBottom');
Are there any other solutions of using subscript/superscript that I could use here?

채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 25일
insertText() does not support Interpreter, so it does not support subscript or superscript.
There are no good work-arounds. The work-arounds that do exist include:
  • rendering into a new figure, capturing the frame, create a mask from the frame, use the mask to write onto the image
  • open a web browser to render the text, pull back the rendered graphic (I'm not sure how that would work at the moment.)
  댓글 수: 1
YT
YT 2018년 4월 26일
okay good to know. thank you for your time.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by