Printing special characters in an axis label
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
L'O.G.
el 6 de Dic. de 2022
Respondida: Walter Roberson
el 6 de Dic. de 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))
0 comentarios
Respuesta aceptada
Walter Roberson
el 6 de Dic. de 2022
Temp = -19.6
ylabel(sprintf('T at %.0f \\circF',Temp), 'Interpreter', 'tex')
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Labels and Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!