www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/DisplayTextAfterEachyAxisTickLabelExample.m

    %% Display Text After Each _y_-Axis Tick Label
% Create a line chart. Display the tick labels along the _y_-axis with the
% text "M" after each value.

x = 1:10;
y = [17 25 27 28 33 32 33 34 33 35];
plot(x,y,'-V')
ytickformat('%g M')