%% Subtract Row and Column Vectors
% Create a 1-by-2 row vector and 3-by-1 column vector and subtract them.

a = 1:2;
b = (1:3)';
a - b

% The result is a 3-by-2 matrix, where each (i,j) element in the matrix is equal to a(j) - b(i):
% a=\left\lbrack a_1 \;a_2 \right\rbrack ,\;\;\;\;\;\;\;\;\;\;b=\left\lbrack \begin{array}{c}
% b_1 \\
% b_2 \\
% b_3
% \end{array}\right\rbrack ,\;\;\;\;\;\;\;\;\;\;\;a-\;b=\left\lbrack \begin{array}{cc}
% a_1 -b_1  & a_2 -b_1 \\
% a_1 -b_2  & a_2 -b_2 \\
% a_1 -b_3  & a_2 -b_3
% \end{array}\right\rbrack \ldotp
% Copyright 2019 The MathWorks, Inc.
%
%
%