superscript/subscript in labels not working

17 vues (au cours des 30 derniers jours)
Woonsup Choi
Woonsup Choi le 18 Fév 2016
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

Réponse acceptée

MHN
MHN le 18 Fév 2016
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 commentaires
Woonsup Choi
Woonsup Choi le 24 Fév 2016
This worked! Thank you.
thewordneverfound
thewordneverfound le 5 Sep 2017
Extremely helpful! Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Labels and Annotations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by