How to use the power operator in xlabel?

288 visualizaciones (últimos 30 días)
Marijn
Marijn el 7 de Dic. de 2013
Comentada: SHUBHAM CHANDRAKANT el 22 de Nov. de 2023
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

Respuesta aceptada

sixwwwwww
sixwwwwww el 7 de Dic. de 2013
use xlabel as below:
xlabel('A*R^(2/3) (m^(8/3))', 'Interpreter', 'none')
  9 comentarios
Walter Roberson
Walter Roberson el 21 de Nov. de 2023
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 el 22 de Nov. de 2023
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.

Iniciar sesión para comentar.

Más respuestas (3)

G A
G A el 7 de Dic. de 2013
xlabel('A*R^{2/3}m^{8/3}')
  5 comentarios
Mohamed Alhamri
Mohamed Alhamri el 30 de Oct. de 2019
it works fine in R2016a win64
Rashid Shams
Rashid Shams el 23 de Jun. de 2021
It works fine in R2020a X64 too. thanks

Iniciar sesión para comentar.


Azzi Abdelmalek
Azzi Abdelmalek el 7 de Dic. de 2013
xlabel('A*R^2^/^3^ m^8^/^3')

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

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by