%% Access Elements of Vector
% Create a vector X.

X = 1:15;

% Access the fifth through final elements of X.

X(5:end)

% Access the odd-index elements of X.

X(1:2:end)

%
% Copyright 2019 The MathWorks, Inc.