% Jake Bobowski
% July 20, 2017
% Created using MATLAB R2014a

clearvars

% Lists are created using square brackets.
xList=[1,2,3,4];
yList=[5,6,7,8];

% It is very easy to combine lists.
A = [xList, yList]

% The combined list could also be transposed.
B = [xList, yList]'

% Or you can built matrices from the individual lists.  Clearly, matrices C
% and D below will only be formed if xList and yList are the same length.
C = [xList; yList]
D = [xList; yList]'
A =

     1     2     3     4     5     6     7     8


B =

     1
     2
     3
     4
     5
     6
     7
     8


C =

     1     2     3     4
     5     6     7     8


D =

     1     5
     2     6
     3     7
     4     8