Printing special characters in an axis label

11 Ansichten (letzte 30 Tage)
L'O.G. am 6 Dez. 2022
Beantwortet: Walter Roberson am 6 Dez. 2022
How do you print special character(s) using sprintf? I want to use this or similar to add special characters to an axis label as in the following:
Here the degree sign doesn't print:
ylabel(sprintf('T at %.0f \circF',Temp))

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 6 Dez. 2022
Temp = -19.6
Temp = -19.6000
ylabel(sprintf('T at %.0f \\circF',Temp), 'Interpreter', 'tex')

Weitere Antworten (0)


Find more on Formatting and Annotation in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by