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: Image
Asked
Active
Viewed 395 times
-1
-
Welcome to MSE. That quesion is off-topic here. – José Carlos Santos Oct 03 '20 at 11:34
1 Answers
0
Whenever you want to use some $\LaTeX$-style text in MATLAB, you have to specifiy the corresponding Interpreter option to use LaTeX. For a legend with your provided example this works with
legend("$\bar{H}^{front}_{debris}$",'Interpreter','latex')
Leo
- 168