Use subscript and superscript in legend

153 Ansichten (letzte 30 Tage)
Yoni Verhaegen -WE-1718-
Yoni Verhaegen -WE-1718- am 3 Okt. 2020
Beantwortet: Ameer Hamza am 3 Okt. 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:

Akzeptierte Antwort

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

Weitere Antworten (2)

Mario Malic
Mario Malic am 3 Okt. 2020

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

Community Treasure Hunt

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

Start Hunting!

Translated by