Printing special characters in an axis label
조회 수: 7 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Labels and Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!