a.*b.' % .' means tranpose ans = 3 8
a = [ 1; 2]; % column vector b = [ 3 4]; % row vector a*b ans = 3 4 6 8