no degree symbol

357 views (last 30 days)
Stephanie
Stephanie on 8 Jun 2012
Commented: Oluwapelumi Ajayi on 15 Apr 2021
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
Yash
Yash on 16 Nov 2012
check prefrences

Sign in to comment.

Answers (6)

Richard
Richard on 16 Nov 2012
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
Oluwapelumi Ajayi
Oluwapelumi Ajayi on 15 Apr 2021
Just what I needed!

Sign in to comment.


Thomas
Thomas on 11 Jun 2012
s = sprintf('45%c', char(176));
figure
hold on
title(s)
  5 Comments
Stephanie
Stephanie on 13 Jun 2012
I tried to check different char(nr) and found that they actually are correct. char(176) will give me the degree symbol in the workspace, but it cannot be displayed in the command window or in figures...

Sign in to comment.


Stephanie
Stephanie on 1 Jun 2014
Solved with: feature('DefaultCharacterSet', 'ISO-8859-1');

Wayne King
Wayne King on 8 Jun 2012
plot(randn(100,1));
title('360^\circ')
  1 Comment
Stephanie
Stephanie on 11 Jun 2012
I have tried this, it also gives the "black diamond".

Sign in to comment.


Kimberly
Kimberly on 12 Jun 2012
I have the same problem you are describing, and I am also running Matlab version R2012a on a Mac only I am still using OS X Snow Leopard. I have tried all of the above as well as '^{o}' and have had no luck with any of them.
  1 Comment
Stephanie
Stephanie on 13 Jun 2012
I found two more colleagues of mine having that problem, too. But no solution so far.

Sign in to comment.


Andrew
Andrew on 12 Sep 2012
Export to eps even when Matlab "fig" shows the black diamond. The eps compiler interprets the TeX code correctly.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by