no degree symbol
Show older comments
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 Comments
Sean de Wolski
on 8 Jun 2012
Have you changed your font preferences (outside of ML)?
Stephanie
on 11 Jun 2012
Yash
on 16 Nov 2012
check prefrences
Answers (7)
Richard
on 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 Comments
Ana
on 12 Mar 2014
This totally works for labeling axes. Thank you!
Oluwapelumi Ajayi
on 15 Apr 2021
Just what I needed!
Stephanie
on 1 Jun 2014
3 votes
Thomas
on 11 Jun 2012
s = sprintf('45%c', char(176));
figure
hold on
title(s)
Andrew
on 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
on 27 Oct 2023
0 votes
Sin(30°)
Categories
Find more on Code Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!