A complex number can be created in MATLAB using the COMPLEX function. To initialize a complex number with zero as the real part and non-zero imaginary part, enter the following at the MATLAB command prompt
a = zeros(1,100);
x = complex(a,0);
To verify that the above command actually creates a 100-by-1 complex array.