MATLAB: Is it possible to use a comma as decimal seperator in figures

commadecimal seperatordot

A few years ago it was not possible to change the decimal seperator from dot to comma. Has this changed? I only need the comma in figures (as axis description in plots). Do you have any idea?

Best Answer

try this,
xl = get(gca,'XTickLabel');
new_xl = strrep(xl(:),'.',',');
set(gca,'XTickLabel',new_xl)
Related Question