Use subscript and superscript in legend

177 ビュー (過去 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 Center および File ExchangeLegend についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by