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);

채택된 답변

Star Strider
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
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
keyi Huo 2019년 3월 8일
char(0176)

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by