Filter löschen
Filter löschen

plot label with latex symbol

172 Ansichten (letzte 30 Tage)
Simo
Simo am 3 Apr. 2020
Kommentiert: Simo am 3 Apr. 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')

Akzeptierte Antwort

Peng Li
Peng Li am 3 Apr. 2020
You need to have the leading and ending symbol $.
e.g., ylabel('$J_{1}(\rho)$','interpreter','latex')

Weitere Antworten (0)

Kategorien

Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by