How to use the power operator in xlabel?
207 ビュー (過去 30 日間)
古いコメントを表示
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153556/image.jpeg)
0 件のコメント
採用された回答
sixwwwwww
2013 年 12 月 7 日
use xlabel as below:
xlabel('A*R^(2/3) (m^(8/3))', 'Interpreter', 'none')
9 件のコメント
Walter Roberson
2023 年 11 月 21 日
Could you post a picture of what your keyboard looks like? What is the typical region that uses that kind of keyboard?
SHUBHAM CHANDRAKANT
2023 年 11 月 22 日
Silly me,after looking at every key properly i found (^), it was on the upper number row of keyboard.
BTW, Thank you for your response.
その他の回答 (3 件)
IEESHAN SHARMA
2017 年 11 月 19 日
Use title('Mean squared error xrec(t)-x(t)^{2}'). Make sure you use curly braces.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!