Display LAtex Equation in gui static text

조회 수: 7 (최근 30일)
sandeep singh
sandeep singh 2019년 2월 11일
편집: Walter Roberson 2022년 12월 16일
Hello all,
i wanna display some equations on static text , i just followed https://in.mathworks.com/matlabcentral/answers/213123-how-to-insert-latex-equation-into-static-text-plot-in-gui#answer_176422. to test its running . i have attached the code,
but when i try to generate same output using uicontrol its not working showing' intrepreter properties is not available'
this is my code
h41 = uicontrol(...
'Parent',Test,...
'FontUnits',get(0,'defaultuicontrolFontUnits'),...
'Units','normalized',...
'HorizontalAlignment','left',...
'String','TEST_{Equation}',...
'Style','text',...
'interpreter','latex',...
'Position',[1 0 2 1],...
'Children',[],...
'Tag','text2');
thanks in advance

채택된 답변

Walter Roberson
Walter Roberson 2019년 2월 11일
편집: Walter Roberson 2019년 2월 11일
This is not possible .
uicontrol style text and edit cannot have any kind of interpretation at all, with the exception that the | character might mark the end of a row.
Some of the other kind of uicontrol will render fairly old HTML.
None of the uicontrol support latex or tex.
  댓글 수: 5
Haris Vidimlic
Haris Vidimlic 2022년 12월 16일
This issue has been accounted for in MATLAB versions later than 2021b.
Check out this related answer: https://www.mathworks.com/matlabcentral/answers/726888-how-to-write-latex-in-gui-s-label
Walter Roberson
Walter Roberson 2022년 12월 16일
편집: Walter Roberson 2022년 12월 16일
uiedit and uitext support some things that uicontrol never did

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by