Effacer les filtres
Effacer les filtres

varphi Matlab / Latex character

93 vues (au cours des 30 derniers jours)
Bogdan Dzonlaga
Bogdan Dzonlaga le 24 Sep 2018
Commenté : Muhammad le 15 Juil 2022
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 commentaire
Muhammad
Muhammad le 15 Juil 2022
But how \varkappa?

Connectez-vous pour commenter.

Réponse acceptée

Bish Erbas
Bish Erbas le 24 Sep 2018
Try
legend({'$\varphi$'},'Interpreter','latex');
  2 commentaires
Chen
Chen le 12 Avr 2021
I meet the same problem.And the code '$\varphi$' or '\varphi' can't be explained by matlab.
Chen
Chen le 12 Avr 2021
It worked.thank you very much!

Connectez-vous pour commenter.

Plus de réponses (1)

Bogdan Dzonlaga
Bogdan Dzonlaga le 24 Sep 2018
It works perfectly, thank you very much !
  1 commentaire
Bish Erbas
Bish Erbas le 24 Sep 2018
Glad to hear!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by