how to dispoly in a text (on a graphic) underlined character with a subscript?

2 visualizaciones (últimos 30 días)
I got the answer to underline a character in a text on a graphic : ('\underline{X}', 'Interpreter', 'latex') BUT
1) I cannot display Xbar (X with a dash on it)
2) It seems also impossible to add a subscript as the following command does not work: ('\underline{X}_{1}', 'Interpreter', 'latex')
Do you have solutions for these questions? Thanks

Respuestas (1)

Image Analyst
Image Analyst el 24 de Dic. de 2013
'\underline{X_{1}}' doesn't work either. You'd think
title('\underline{X}_1', 'Interpreter', 'latex');
should work because it should underline the X and then the underline says the 1 after it should be a subscript, just like
title('X_1', 'Interpreter', 'latex'); % 1 is a subscript.
does. But it does not. I tried a few things and couldn't solve it either. MATLAB does admit they don't support the full latex instruction set.

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by