Use subscript and superscript in legend
153 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
madhan ravi
2020-10-3
legend(['$\overline{H}_{subscript}^' ...
'{superscript}$'],...
'interpreter','latex')
0 个评论
更多回答(2 个)
Ameer Hamza
2020-10-3
plot(1:10);
legend('$\overline{H}_{debris}^{front}$', ...
'Interpreter', 'latex', ...
'FontSize', 16, ...
'location', 'best')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!