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

 Réponse acceptée

Birdman
Birdman le 15 Nov 2017

0 votes

ylabel('Price €');

2 commentaires

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

Connectez-vous pour commenter.

Plus de réponses (1)

J S
J S le 15 Nov 2017

2 votes

Found a way:
ytxt =char(8364);
ylabel(['Price ' num2str(ytxt)]);

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by