superscript in xlabel when from array
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
If I have e.g.:
ylabel(VarTex(1,VarComp),'FontSize',16,'FontName','Calibri','FontWeight','bold')
how can I make superscript parts of the text referred to appear as superscript in the axis label e.g. if the text in VarTex(1,VarComp) is 'Temperature oC' I need the 'o' to be superscript.
If I type in the command window:
Y=VarTex(1,VarComp)
I get:
Y =
'Temperature (°C)'
I have tried various things with 'Interpreter' but not getting anywhere. Does anybody know the syntax I would need to put in the ylabel line above to get superscript/subscript to appear as such thanks
0 comentarios
Ver también
Categorías
Más información sobre Axis Labels 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!