Filter löschen
Filter löschen

Euro sign in axis label

22 Ansichten (letzte 30 Tage)
J S
J S am 15 Nov. 2017
Bearbeitet: Birdman am 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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

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

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by