no degree symbol
Afficher commentaires plus anciens
Hi, somehow I cannot display any degree symbols in Matlab. When i put text in a figure title or also the lat/lon labels on maps only show something like a black diamondshaped symbol instead of the º. My colleague, who has the same problem. We use Matlab Version R2012a on Mac OS X Lion.
Thank you in advance!
3 commentaires
Sean de Wolski
le 8 Juin 2012
Have you changed your font preferences (outside of ML)?
Stephanie
le 11 Juin 2012
Yash
le 16 Nov 2012
check prefrences
Réponses (7)
Richard
le 16 Nov 2012
9 votes
I dont know if this will help but I use ^{o} so for temperature in degrees C I type xlabel('Temperature ^{o}C');
2 commentaires
Ana
le 12 Mar 2014
This totally works for labeling axes. Thank you!
Oluwapelumi Ajayi
le 15 Avr 2021
Just what I needed!
Stephanie
le 1 Juin 2014
3 votes
Thomas
le 11 Juin 2012
s = sprintf('45%c', char(176));
figure
hold on
title(s)
Wayne King
le 8 Juin 2012
plot(randn(100,1));
title('360^\circ')
1 commentaire
Stephanie
le 11 Juin 2012
Andrew
le 12 Sep 2012
0 votes
Export to eps even when Matlab "fig" shows the black diamond. The eps compiler interprets the TeX code correctly.
Finlay
le 27 Oct 2023
0 votes
Sin(30°)
Catégories
En savoir plus sur Code Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!