MATLAB: Fixed point numbers on plot axes

fixed-pointformat plotMATLABplot axis

Doubtless this has been answered somewhere already, but I haven't found it.
Is there a simple way to display numbers in fixed point format (e.g. 12345.0, 12345.5, 12346.0, etc.) on a plot axis rather than the default floating point format (1.2345, 1.2346, 1.2346, etc. x 10^4)?

Best Answer

Hi,
you could do the following:
ytick = get(gca, 'ytick');
yticklabel =strread(sprintf('%.1f;', ytick), '%s', 'delimiter', ';')
set(gca,'yticklabel', ytick)
Titus