Printing special characters in an axis label
조회 수: 10(최근 30일)
표시 이전 댓글
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
채택된 답변
Walter Roberson
2022년 12월 6일
Temp = -19.6
ylabel(sprintf('T at %.0f \\circF',Temp), 'Interpreter', 'tex')
댓글 수: 0
추가 답변(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!