superscript/subscript in labels not working

22 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

更多回答(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