no degree symbol
Ältere Kommentare anzeigen
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 Kommentare
Sean de Wolski
am 8 Jun. 2012
Have you changed your font preferences (outside of ML)?
Stephanie
am 11 Jun. 2012
Yash
am 16 Nov. 2012
check prefrences
Antworten (7)
Richard
am 16 Nov. 2012
9 Stimmen
I dont know if this will help but I use ^{o} so for temperature in degrees C I type xlabel('Temperature ^{o}C');
2 Kommentare
Ana
am 12 Mär. 2014
This totally works for labeling axes. Thank you!
Oluwapelumi Ajayi
am 15 Apr. 2021
Just what I needed!
Stephanie
am 1 Jun. 2014
3 Stimmen
Thomas
am 11 Jun. 2012
s = sprintf('45%c', char(176));
figure
hold on
title(s)
Wayne King
am 8 Jun. 2012
plot(randn(100,1));
title('360^\circ')
1 Kommentar
Stephanie
am 11 Jun. 2012
Andrew
am 12 Sep. 2012
0 Stimmen
Export to eps even when Matlab "fig" shows the black diamond. The eps compiler interprets the TeX code correctly.
Finlay
am 27 Okt. 2023
0 Stimmen
Sin(30°)
Kategorien
Mehr zu Code Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!