varphi Matlab / Latex character
조회 수: 73 (최근 30일)
이전 댓글 표시
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 !
채택된 답변
Bish Erbas
2018년 9월 24일
Try
legend({'$\varphi$'},'Interpreter','latex');
댓글 수: 2
Chen
2021년 4월 12일
I meet the same problem.And the code '$\varphi$' or '\varphi' can't be explained by matlab.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Standard File Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!