%% Specify Properties for Current Axes
% Plot a sine wave.

x = linspace(0,10);
y = sin(4*x);
plot(x,y)

%
% Set the font size, tick direction, tick length, and y-axis limits for the current axes. Use gca to refer to the current axes.

ax = gca; % current axes
ax.FontSize = 12;
ax.TickDir = 'out';
ax.TickLength = [0.02 0.02];
ax.YLim = [-2 2];

% Copyright 2015 The MathWorks, Inc.