Use subscript and superscript in legend
153 views (last 30 days)
Show older comments
Yoni Verhaegen -WE-1718-
on 3 Oct 2020
Answered: Ameer Hamza
on 3 Oct 2020
Hi all,
I am wondering how to implement text in a legend with both a superscript and a subscript, and with an horizontal bar, something like this:
0 Comments
Accepted Answer
madhan ravi
on 3 Oct 2020
legend(['$\overline{H}_{subscript}^' ...
'{superscript}$'],...
'interpreter','latex')
0 Comments
More Answers (2)
Ameer Hamza
on 3 Oct 2020
plot(1:10);
legend('$\overline{H}_{debris}^{front}$', ...
'Interpreter', 'latex', ...
'FontSize', 16, ...
'location', 'best')
0 Comments
See Also
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!