How to use the power operator in xlabel?
Mostra commenti meno recenti
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

Risposta accettata
Più risposte (3)
G A
il 7 Dic 2013
xlabel('A*R^{2/3}m^{8/3}')
5 Commenti
Marijn
il 7 Dic 2013
Azzi Abdelmalek
il 8 Dic 2013
This is not working
Mohamed Alhamri
il 30 Ott 2019
it works fine in R2016a win64
Rashid Shams
il 23 Giu 2021
It works fine in R2020a X64 too. thanks
IEESHAN SHARMA
il 19 Nov 2017
2 voti
Use title('Mean squared error xrec(t)-x(t)^{2}'). Make sure you use curly braces.
Categorie
Scopri di più su Bodies in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!