I would like to use the degree symbol in one of the text objects that I am placing on my figure. This object is represented by the \circ escape sequence. I can use it well in the following manner:
text(1,1, '45\circ');
However, I have additional variables that I need to insert in my string expression for which I need to use the SPRINTF function as follows:
text(1,1, sprintf('%d\circ', x))% where x = 45
The SPRINTF function however does not accept the \circ operator and gives a warning. The XLABEL, YLABEL, TEXT and other functions all accept this escape sequence.
Best Answer