MATLAB Answers

plot label with latex symbol

44 views (last 30 days)
Simo
Simo on 3 Apr 2020
Commented: Simo on 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')

  0 Comments

Sign in to comment.

Accepted Answer

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

  1 Comment

Simo
Simo on 3 Apr 2020
it works
thanks

Sign in to comment.

More Answers (0)

Tags


Translated by