I am trying to display the degree symbol ° in the Y-axis on a plot using Matlab 2015a. But it is not working, does anyone know why?
조회 수: 339 (최근 30일)
이전 댓글 표시
This is what I'm using:
ylabel('Average Monthly Temperature (^{o}C)','FontSize',14);
댓글 수: 0
채택된 답변
Star Strider
2016년 2월 29일
편집: Star Strider
2016년 2월 29일
This works:
deg_sign = char(0176)
or you can just enter °.
Another option is:
\circ
댓글 수: 5
Walter Roberson
2020년 7월 2일
I wonder if you have accidentally set default Text interpreter to latex ? What shows up if you do
ax = gca; ax.YAxis.TickLabelInterpreter
추가 답변 (1개)
keyi Huo
2019년 3월 8일
char(0176)
댓글 수: 2
Star Strider
2019년 3월 8일
@keyi Huo — Did you not read my Answer (posted and Accepted more than 3 years ago)?
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!