Effacer les filtres
Effacer les filtres

Euro sign in axis label

22 vues (au cours des 30 derniers jours)
J S
J S le 15 Nov 2017
Modifié(e) : Birdman le 15 Nov 2017
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
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
Found a way:
ytxt =char(8364);
ylabel(['Price ' num2str(ytxt)]);

Catégories

En savoir plus sur Data Distribution Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by