Azzera filtri
Azzera filtri

Euro sign in axis label

22 visualizzazioni (ultimi 30 giorni)
J S
J S il 15 Nov 2017
Modificato: Birdman il 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

Risposta accettata

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

Accedi per commentare.

Più risposte (1)

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

Categorie

Scopri di più su Data Distribution Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by