How to I put a tilde/bar/hat on a word (2 characters) in my figure legend?

28 views (last 30 days)
Hi,
I've been trying to use the LaTex interpreter to put a tilde/bar/hat on some variables in my legend. However, the sign is way too small compared to my word (2 characters only). How can I make it bigger, to cover the entire variable?
The code is the one below:
h = legend('$\tilde{EP}_{2}$');
set(h,'interpreter','Latex','FontSize',14);
This is what I get:
Thanks!

Accepted Answer

Walter Roberson
Walter Roberson on 1 Aug 2020
Edited: Walter Roberson on 1 Aug 2020

More Answers (1)

Alan Stevens
Alan Stevens on 1 Aug 2020
Use \widetilde rather than just \tilde

Tags

Community Treasure Hunt

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

Start Hunting!