How to use the power operator in xlabel?

304 次查看(过去 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

采纳的回答

sixwwwwww
sixwwwwww 2013-12-7
use xlabel as below:
xlabel('A*R^(2/3) (m^(8/3))', 'Interpreter', 'none')
  9 个评论
Walter Roberson
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
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 个)

G A
G A 2013-12-7
xlabel('A*R^{2/3}m^{8/3}')
  5 个评论

请先登录,再进行评论。


Azzi Abdelmalek
Azzi Abdelmalek 2013-12-7
xlabel('A*R^2^/^3^ m^8^/^3')

IEESHAN SHARMA
IEESHAN SHARMA 2017-11-19
Use title('Mean squared error xrec(t)-x(t)^{2}'). Make sure you use curly braces.

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by