How to write an overline notation in ylabel

12 ビュー (過去 30 日間)
Shan  Chu
Shan Chu 2017 年 7 月 12 日
コメント済み: Naty Shemer 2017 年 7 月 13 日
Hi, I would like to write an overline notation above a variable in y label. My code doesn't work at all. Could you please suggest a solution Thanks
yyaxis left
hold on
hold off
xlabel('R / r_0')
*ylabel('\color{black} \bar{s} in | M | (%)')*
axis tight
ylim([0 120])
xlim([1 4])
yticks([0 40 80 120])
ax = gca;
ax.YColor = 'black';
yyaxis right
hold on
hold off
ax = gca;
ax.YColor = 'black';
legend('D&D | M |','New Formulae | M |','D&D \phi( M )','New Formulae \phi( M )')
set(findall(gcf,'-property','FontName'),'FontName', 'Times New Roman','fontsize',50)


Naty Shemer
Naty Shemer 2017 年 7 月 12 日
Are you familiar with the interpreter and text functions?
Look under interpreter
  2 件のコメント
Shan  Chu
Shan Chu 2017 年 7 月 12 日
Hi, Thank you for your reply. But it didn't work when I have a text and a symbol
Naty Shemer
Naty Shemer 2017 年 7 月 13 日
If you are having trouble with the matlab default interpreter try the Latex one. This should be able to do whatever you want..


その他の回答 (0 件)


Help Center および File ExchangeAnnotations についてさらに検索


Community Treasure Hunt

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

Start Hunting!

Translated by