I am trying to display the degree symbol ° in the Y-axis on a plot using Matlab 2015a. But it is not working, does anyone know why?
293 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
JUAN DAVID PEREZ
il 29 Feb 2016
Commentato: sai reddy
il 6 Lug 2020
This is what I'm using:
ylabel('Average Monthly Temperature (^{o}C)','FontSize',14);
0 Commenti
Risposta accettata
Star Strider
il 29 Feb 2016
Modificato: Star Strider
il 29 Feb 2016
This works:
deg_sign = char(0176)
or you can just enter °.
Another option is:
\circ
5 Commenti
Walter Roberson
il 2 Lug 2020
I wonder if you have accidentally set default Text interpreter to latex ? What shows up if you do
ax = gca; ax.YAxis.TickLabelInterpreter
Più risposte (1)
keyi Huo
il 8 Mar 2019
char(0176)
2 Commenti
Star Strider
il 8 Mar 2019
@keyi Huo — Did you not read my Answer (posted and Accepted more than 3 years ago)?
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!