Default decimal seperator comma instead of dot
Show older comments
Is ist possible to change the default decimal seperator in graphics from dot to comma? If yes, how? I'm writing my PhD theses in german and I have to use the german decimal seperator in all graphics (comma).
Answers (2)
Short answer: no.
Long answer: maybe, if you are prepared to play around with Java:
This is not a standard MATLAB feature, so be prepared to do some experimenting... it may also be the the new graphics engine has some feature that allows this. Good luck finding it!
Of course you could always specify every string label/title/... yourself, and replace the dot with a comma. However this does not "change the default" as your question requests.
You should also request that this support be added to MATLAB:
Not an answer: MatPlotLib has multiple ways to specify this: for example by specifying the radix character explicitly, or by specifying the locale:
Leon Miecoanski
on 6 Oct 2017
Edited: Walter Roberson
on 6 Oct 2017
0 votes
To only change dot to comma in a graphic, in a plot window select Edit and then axes properties.
Click in Ticks (Edit axes ticks) and then select manual to insert the format you wish.
1 Comment
Walter Roberson
on 6 Oct 2017
However, only sprintf type formats are supported, and none of them can use comma instead of decimal point .
Categories
Find more on Data Type Identification in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!