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.

 채택된 답변

Walter Roberson
Walter Roberson 2019년 10월 7일

1 개 추천

h = legend('$4C_{ACTIVE} - \overline{PI}_{ACTIVE}$','$4C_{FIXED} - \overline{PI}_{FIXED}$');
h.Interpreter = 'latex';

댓글 수: 2

Shipra Jain
Shipra Jain 2019년 10월 7일
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
Perhaps
h = legend('$\bf{4C_{ACTIVE} - \overline{PI}_{ACTIVE}}$','$\bf{4C_{FIXED} - \overline{PI}_{FIXED}}$')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2019년 10월 7일

댓글:

2019년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by