필터 지우기
필터 지우기

Euro sign in axis label

조회 수: 22 (최근 30일)
J S
J S 2017년 11월 15일
편집: Birdman 2017년 11월 15일
I have to label my graph with 'Price €' on the ylabel but cant get it to work...
I tried stuff aka: https://de.mathworks.com/help/matlab/creating_plots/greek-letters-and-special-characters-in-graph-text.html and
ylabel('Price {char(8364)}');
but no luck.
Thanks for any help

채택된 답변

Birdman
Birdman 2017년 11월 15일
ylabel('Price €');
  댓글 수: 2
J S
J S 2017년 11월 15일
편집: J S 2017년 11월 15일
That was of course the first thing I tried but doesn't work
Birdman
Birdman 2017년 11월 15일
편집: Birdman 2017년 11월 15일
Try this:
euro=char(8364);
ylabel({'Price',euro})

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

추가 답변 (1개)

J S
J S 2017년 11월 15일
Found a way:
ytxt =char(8364);
ylabel(['Price ' num2str(ytxt)]);

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by