Euro sign in axis label

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

 Accepted Answer

ylabel('Price €');

2 Comments

J S
J S on 15 Nov 2017
Edited: J S on 15 Nov 2017
That was of course the first thing I tried but doesn't work
Birdman
Birdman on 15 Nov 2017
Edited: Birdman on 15 Nov 2017
Try this:
euro=char(8364);
ylabel({'Price',euro})

Sign in to comment.

More Answers (1)

J S
J S on 15 Nov 2017
Found a way:
ytxt =char(8364);
ylabel(['Price ' num2str(ytxt)]);

Tags

Asked:

J S
on 15 Nov 2017

Edited:

on 15 Nov 2017

Community Treasure Hunt

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

Start Hunting!