%% Complex Vector from Two Real Vectors
% Create a complex uint8 vector from two real uint8 vectors. The size of z, 4-by-1, is the same as the size of the input arguments.

a = uint8([1;2;3;4]);
b = uint8([2;2;7;7]);

z = complex(a,b)

% Copyright 2012 The MathWorks, Inc.