superscript/subscript in labels not working

12 ビュー (過去 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 Center および File ExchangeLabels and Annotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by