Use subscript and superscript in legend

조회 수: 180 (최근 30일)
Yoni Verhaegen -WE-1718-
Yoni Verhaegen -WE-1718- 2020년 10월 3일
답변: Ameer Hamza 2020년 10월 3일
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