varphi Matlab / Latex character

조회 수: 73 (최근 30일)
Bogdan Dzonlaga
Bogdan Dzonlaga 2018년 9월 24일
댓글: Muhammad 2022년 7월 15일
Hi,
Does anyone know if it is possible to use the \varphi character in a legend of a graph ? I have set my default interpreter as "tex" but still the \varphi is not printed properly.
set(groot, 'defaultAxesTickLabelInterpreter','tex'); set(groot, 'defaultLegendInterpreter','tex'); set(0, 'defaultTextInterpreter', 'tex');
legend('\varphi', 'k');
I have tried using $\varphi$, and changing the interpreter to 'latex' but without success.
Thanks in advance !
  댓글 수: 1
Muhammad
Muhammad 2022년 7월 15일
But how \varkappa?

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

채택된 답변

Bish Erbas
Bish Erbas 2018년 9월 24일
Try
legend({'$\varphi$'},'Interpreter','latex');
  댓글 수: 2
Chen
Chen 2021년 4월 12일
I meet the same problem.And the code '$\varphi$' or '\varphi' can't be explained by matlab.
Chen
Chen 2021년 4월 12일
It worked.thank you very much!

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

추가 답변 (1개)

Bogdan Dzonlaga
Bogdan Dzonlaga 2018년 9월 24일
It works perfectly, thank you very much !

카테고리

Help CenterFile Exchange에서 Standard File Formats에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by