%% Set x-Axis Limits
% Plot a line and set the x-axis limits to range from 0 to 5.

x = linspace(0,10);
y = sin(x);
plot(x,y)
xlim([0 5])

% Copyright 2015 The MathWorks, Inc.