%% Complex Vector
% Create a complex vector from two 4-by-1 vectors of real numbers. z is a 4-by-1 complex vector.

x = [1:4]';
y = [8:-2:2]';

z = x+1j*y

% Copyright 2012 The MathWorks, Inc.