varphi Matlab / Latex character
86 次查看(过去 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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!