Use subscript and superscript in legend
显示 更早的评论
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:

采纳的回答
更多回答(2 个)
Mario Malic
2020-10-3
1 个投票
See legend properties
Under Labels - Interpreter
Ameer Hamza
2020-10-3
plot(1:10);
legend('$\overline{H}_{debris}^{front}$', ...
'Interpreter', 'latex', ...
'FontSize', 16, ...
'location', 'best')
类别
在 帮助中心 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!