Printing special characters in an axis label
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
L'O.G.
il 6 Dic 2022
Risposto: Walter Roberson
il 6 Dic 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 Commenti
Risposta accettata
Walter Roberson
il 6 Dic 2022
Temp = -19.6
ylabel(sprintf('T at %.0f \\circF',Temp), 'Interpreter', 'tex')
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Labels and Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!