How to write an overline notation in ylabel

조회 수: 5 (최근 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
figure
yyaxis left
hold on
plot(d,o_DD_abs,'r-s','LineWidth',3,'MarkerSize',15)
plot(d,o_SA_abs,'k-o','LineWidth',3,'MarkerSize',15)
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
plot(d,o_DD_pha,'-^','LineWidth',3,'MarkerSize',15)
plot(d,o_SA_pha,'-v','LineWidth',3,'MarkerSize',15)
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?
https://www.mathworks.com/help/matlab/ref/text-properties.html
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 CenterFile Exchange에서 Design of Experiments (DOE)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by