How to use the power operator in xlabel?

조회 수: 432 (최근 30일)
Marijn
Marijn 2013년 12월 7일
댓글: SHUBHAM CHANDRAKANT 2023년 11월 22일
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
Mohamed Alhamri
Mohamed Alhamri 2019년 10월 30일
it works fine in R2016a win64
Rashid Shams
Rashid Shams 2021년 6월 23일
It works fine in R2020a X64 too. thanks

댓글을 달려면 로그인하십시오.


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에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by