Anyone know how to display the degree symbol?

Anyone know how to display the degree symbol ° in a text object on a plot? I've tried both solutions: http://www.mathworks.com/matlabcentral/answers/32376-degree-symbol but none of them works for me inside the text object: text(0.5,-0.11,sprintf('preferred orientation: %d^{\circ}, phase: %d^{\circ}',30,60),'Interpreter','tex') text(-0.11,0.5,sprintf('preferred orientation: %d%c, phase: %d%c',45,char(176),90,char(176)),'Interpreter','tex')

Réponses (1)

Thorsten
Thorsten le 28 Oct 2015
text(0.5,-0.11,sprintf('preferred orientation: %d%c, phase: %d%c',30,char(176),60,char(176)))

1 commentaire

Mr M.
Mr M. le 29 Oct 2015
??? I have already written that I've tried and did not work for me!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Question posée :

le 28 Oct 2015

Commenté :

le 29 Oct 2015

Community Treasure Hunt

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

Start Hunting!

Translated by