superscript/subscript in labels not working

조회 수: 10 (최근 30일)
Woonsup Choi
Woonsup Choi 2016년 2월 18일
댓글: thewordneverfound 2017년 9월 5일
I wanted to use superscripts for x or y axis labels by using commands like:
ylabel('e^t')
However, the result is simply e^t, no matter how many times I tried. The '\' function for greek letters does not work either. Can anyone tell me what is wrong with my Matlab?
Thank you, Woonsup

채택된 답변

MHN
MHN 2016년 2월 18일
x= 1:10;
y=2*x;
plot(x,y)
ylabel('e^t')
It works on Matlab R2014b, maybe the version that you are using does not support latex format.
  댓글 수: 5
Woonsup Choi
Woonsup Choi 2016년 2월 24일
This worked! Thank you.
thewordneverfound
thewordneverfound 2017년 9월 5일
Extremely helpful! Thank you!

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

추가 답변 (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