%% Multiply Row and Column Vectors
% Create a row vector a and a column vector b, then multiply them. The 1-by-3 row vector and 4-by-1 column vector combine to produce a 4-by-3 matrix.

a = 1:3;
b = (1:4)';
a.*b

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