plot label with latex symbol
57 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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')
0 Commenti
Risposta accettata
Peng Li
il 3 Apr 2020
You need to have the leading and ending symbol $.
e.g., ylabel('$J_{1}(\rho)$','interpreter','latex')
Più risposte (1)
Lazaros
il 22 Apr 2025
Matlab basically understands all the basic symbols that the amsmath package uses, so you can include subscript and superscript, as well as functions like \cos and \frac{}{}. The comment above covers you, but I have some additional examples in this video, https://www.youtube.com/watch?v=5TwChCWGllI
0 Commenti
Vedere anche
Categorie
Scopri di più su Labels and Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!