plot label with latex symbol

237 vues (au cours des 30 derniers jours)
Simo
Simo le 3 Avr 2020
Commenté : Simo le 3 Avr 2020
hi
how can i enter latex symbol (greek letter rho this time) in the labels of a plot? (first order bessel function)
yl={'J_{1}(\rho)','$'};
xl={'\rho','$'};
ylabel(yl,'interpreter','latex')
ylabel(xl,'interpreter','latex')

Réponse acceptée

Peng Li
Peng Li le 3 Avr 2020
You need to have the leading and ending symbol $.
e.g., ylabel('$J_{1}(\rho)$','interpreter','latex')
  1 commentaire
Simo
Simo le 3 Avr 2020
it works
thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Labels and Annotations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by