필터 지우기
필터 지우기

How to add a greek letter as part of the xlabel

조회 수: 10 (최근 30일)
H LIU
H LIU 2020년 2월 12일
댓글: H LIU 2020년 2월 12일
I would like to change the figure xlabel as 'I want to use \varepsilon_a', but \varepsilon cannot be recognized in my 2019b version Matlab (but \epsilon can). Any suggestions to realize this?
  댓글 수: 2
BN
BN 2020년 2월 12일
Hello, Mybe it's helpul for you:
%use this:
xlabel(char(949))
H LIU
H LIU 2020년 2월 12일
Thanks, but then I cannot use subscript here, right? Also, I need a sentense within which there is an \varepsilon, I tried:
xlabel('Other part of the sentense', (char(949)))
it also dosen't work

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

채택된 답변

BN
BN 2020년 2월 12일
편집: BN 2020년 2월 12일
Dear H LIU,
You need to type like this:
xlabel(['{Other part of the sentense}' char(949)])
Further, if you want using suberscript above (^) or below (_) you can add them like this:
xlabel(['{Other part of the sentense}^' char(949)]) % suberscript above \varepsilon
%or
xlabel(['{Other part of the sentense}_' char(949)]) % suberscript below \varepsilon
Best Regards,
Behzad

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by