no degree symbol
Mostrar comentarios más antiguos
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 comentarios
Sean de Wolski
el 8 de Jun. de 2012
Have you changed your font preferences (outside of ML)?
Stephanie
el 11 de Jun. de 2012
Yash
el 16 de Nov. de 2012
check prefrences
Respuestas (7)
Richard
el 16 de Nov. de 2012
9 votos
I dont know if this will help but I use ^{o} so for temperature in degrees C I type xlabel('Temperature ^{o}C');
2 comentarios
Ana
el 12 de Mzo. de 2014
This totally works for labeling axes. Thank you!
Oluwapelumi Ajayi
el 15 de Abr. de 2021
Just what I needed!
Stephanie
el 1 de Jun. de 2014
3 votos
Thomas
el 11 de Jun. de 2012
s = sprintf('45%c', char(176));
figure
hold on
title(s)
Wayne King
el 8 de Jun. de 2012
plot(randn(100,1));
title('360^\circ')
1 comentario
Stephanie
el 11 de Jun. de 2012
Kimberly
el 12 de Jun. de 2012
0 votos
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 comentario
Stephanie
el 13 de Jun. de 2012
Andrew
el 12 de Sept. de 2012
0 votos
Export to eps even when Matlab "fig" shows the black diamond. The eps compiler interprets the TeX code correctly.
Finlay
el 27 de Oct. de 2023
0 votos
Sin(30°)
Categorías
Más información sobre Code Performance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!