Using epsilon in legend
Mostrar comentarios más antiguos
I want to use Greek symbol epsilon "ɛ" in my legend and I use \epsilon. But it gives me "є" . I found a solution using char(949). But I can not use subscript with that. Actually I need to write "ɛ_21". Can anyone please help me?
Respuesta aceptada
Más respuestas (2)
Chad Greene
el 18 de Feb. de 2016
Try this:
title(' $\varepsilon_{21}$ ','interpreter','latex')
2 comentarios
Chad Greene
el 18 de Feb. de 2016
Ah, you said legend. There's an extra step for legends:
l = legend('$\varepsilon_{21}$');
set(l,'interpreter','latex')
Hasib Rahman
el 18 de Feb. de 2016
Maria Erans Moreno
el 21 de Ag. de 2019
0 votos
I have a new question in this topic I need to put ɛ' and ɛ'' in two different graphs
I have tried [char(949) ' ' '] or [char(949) ' " ']
I have also tried with \varepsilon but it does not seem to work. Can somebody help me?
1 comentario
You just change the interpreter to latex in any function you need (like title, ylabel, legend, etc.) and you can use both epsilons variations.
plot(rand(100, 1))
title('$\epsilon$ and $\varepsilon$', 'Interpreter','latex')
Categorías
Más información sobre 2-D Function Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

