How to use the power operator in xlabel?
조회 수: 289 (최근 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
댓글 수: 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!