# Generate random complex variables
x <- complex(real=rnorm(100,10,10), imaginary=rnorm(100,10,10))
# Get a matrix and a vector for one value
complex2mat(x[1])
complex2vec(x[1])
# Get matrices for all values
complex2mat(x)
complex2vec(x)
Run the code above in your browser using DataLab