필터 지우기
필터 지우기

how to include degree circle symbol in legend

조회 수: 103 (최근 30일)
Abdulaziz Abutunis
Abdulaziz Abutunis 2015년 6월 15일
댓글: Abdulaziz Abutunis 2015년 6월 15일
Hi all, is there any way to include the degree circle symbol in a legend. My attempt was
legendInfo{j}=['\theta=' num2str(Pitch_(1,j))^{\circ}];
Without including ^{\circ}, the legendInfo works fine.
Thanks, Aziz

답변 (1개)

Joseph Cheng
Joseph Cheng 2015년 6월 15일
use the alt code (alt+248) which will give you ° when generating the legend.
figure,plot(randi(10,1,10))
legend('°C')
which you can enter as hold down the alt button then enter the number 2-4-8 then release the alt key.
  댓글 수: 1
Abdulaziz Abutunis
Abdulaziz Abutunis 2015년 6월 15일
Thank you Joseph, No thing happened when i pressed alt and entered the figures. But I have tried the next and it worked legendInfo{j}=['\theta=' num2str(Pitch_(1,j)),'^{\circ}'];

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by