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