Put overbar and subscript multiple times

38 ビュー (過去 30 日間)
Shipra Jain
Shipra Jain 2019 年 10 月 7 日
コメント済み: Walter Roberson 2019 年 10 月 7 日
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 日
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
Walter Roberson
Walter Roberson 2019 年 10 月 7 日
Perhaps
h = legend('$\bf{4C_{ACTIVE} - \overline{PI}_{ACTIVE}}$','$\bf{4C_{FIXED} - \overline{PI}_{FIXED}}$')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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