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

% Copyright 2015 The MathWorks, Inc.

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. 
%
% *Note:* Starting in R2014b, you can use dot notation to set properties.
% If you are using an earlier release, use the
% <docid:matlab_ref.f67-432995> function instead, such as
% |set(ax,'FontSize',12)|.

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