%% Control Value in Exponent Label
% Plot data with y values that range between -15,000 and 15,000. By default, the y-axis tick labels use exponential notation with an exponent value of 4 and a base of 10.

x = linspace(0,5,1000);
y = 100*exp(x).*sin(20*x);
plot(x,y)

%
% Change the exponent value to 2. Set the Exponent property of the ruler object associated with the y-axis. Access the ruler object through the YAxis property of the Axes object. The exponent label and the tick labels change accordingly.

ax = gca;
ax.YAxis.Exponent = 2;

%
% Change the exponent value to 0 so that the tick labels do not use exponential notation.

ax.YAxis.Exponent = 0;

% Copyright 2012 The MathWorks, Inc.