%% Set y-Axis Limits
% Plot a line and set the y-axis limits to range from -2 to 2.

x = linspace(0,10);
y = sin(x);
plot(x,y)
ylim([-2 2])

% Copyright 2015 The MathWorks, Inc.