%% Plot Single Data Series
% Create a stairstep plot of sine evaluated at 40 equally spaced values between 0 and 4\pi.

X = linspace(0,4*pi,40);
Y = sin(X);

figure
stairs(Y)

% The length of Y automatically determines and generates the x-axis scale.
% Copyright 2015 The MathWorks, Inc.