plot label with latex symbol
74 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Peng Li
2020-4-3
You need to have the leading and ending symbol $.
e.g., ylabel('$J_{1}(\rho)$','interpreter','latex')
更多回答(1 个)
Lazaros
2025-4-22
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!