Put overbar and subscript multiple times

43 visualizaciones (últimos 30 días)
Shipra Jain
Shipra Jain el 7 de Oct. de 2019
Comentada: Walter Roberson el 7 de Oct. de 2019
I have the following legend:
legend('4C_{ACTIVE} - PI_{ACTIVE}','4C_{FIXED} - PI_{FIXED}');
I want to put overbar over the letters PI (not on the subscipt or anywhere else). Can someone suggest how to do this?
Thanks in advance.

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Oct. de 2019
h = legend('$4C_{ACTIVE} - \overline{PI}_{ACTIVE}$','$4C_{FIXED} - \overline{PI}_{FIXED}$');
h.Interpreter = 'latex';
  2 comentarios
Shipra Jain
Shipra Jain el 7 de Oct. de 2019
Thanks Walter. It works but when I use this the formatting is changed. Can you please also suggest how to remove italics from the legend and make it bold. I tried but it still looks the same.
Thanks,
S
Walter Roberson
Walter Roberson el 7 de Oct. de 2019
Perhaps
h = legend('$\bf{4C_{ACTIVE} - \overline{PI}_{ACTIVE}}$','$\bf{4C_{FIXED} - \overline{PI}_{FIXED}}$')

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by