How to use the power operator in xlabel?
古いコメントを表示
Hi,
I want to add this xlabel to my figure: xlabel = ('A*R^(2/3) (m^(8/3))'). What my matlab does is instead of displaying the '^-sign' it places the first symbol after the operator in superscript, see figure attached. How can I overcome this problem (by either displaying the '^-sign' or by placing the entire term in superscript)?
Thanks, Marijn

採用された回答
その他の回答 (3 件)
G A
2013 年 12 月 7 日
xlabel('A*R^{2/3}m^{8/3}')
5 件のコメント
Marijn
2013 年 12 月 7 日
Azzi Abdelmalek
2013 年 12 月 8 日
This is not working
Mohamed Alhamri
2019 年 10 月 30 日
it works fine in R2016a win64
Rashid Shams
2021 年 6 月 23 日
It works fine in R2020a X64 too. thanks
IEESHAN SHARMA
2017 年 11 月 19 日
2 投票
Use title('Mean squared error xrec(t)-x(t)^{2}'). Make sure you use curly braces.
カテゴリ
ヘルプ センター および File Exchange で Bodies についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!