Use subscript and superscript in legend

147 次查看(过去 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:

采纳的回答

madhan ravi
madhan ravi 2020-10-3
legend(['$\overline{H}_{subscript}^' ...
'{superscript}$'],...
'interpreter','latex')

更多回答(2 个)

Mario Malic
Mario Malic 2020-10-3

Ameer Hamza
Ameer Hamza 2020-10-3
plot(1:10);
legend('$\overline{H}_{debris}^{front}$', ...
'Interpreter', 'latex', ...
'FontSize', 16, ...
'location', 'best')

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by