How to set the text interpreter in GUI's label? (not in graph's axis)

조회 수: 4 (최근 30일)
Zihao Liu
Zihao Liu 2021년 2월 11일
답변: Sourabh Kondapaka 2021년 2월 18일
What I am trying to do is to write a startup function in GUI to set the interpreter for some Editfields's label to be latex. I searched online and tried using this:
but Matlab returned an error saying there is no interpreter property for label. I am using Matlab R2019b and could someone please tell me whether this command has changed in this version?

답변 (1개)

Sourabh Kondapaka
Sourabh Kondapaka 2021년 2월 18일
The Interpreter property for uilabel has been added to app designer since Matlab R2020b and hence this feature is not available for R2019b version.
Some work arounds to acheive what you want are:
  • For simple equations, you can use uihtml
  • As the Title property for Axes supports latex interpreter, you can use Axes. Hide all the axes related properties except the Title and set the Interpreter for Title to latex. This way you can acheive exactly what you want.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by