# Generate random complex variables
x <- complex(real=rnorm(100,10,10), imaginary=rnorm(100,10,10))
y <- complex(real=rnorm(100,10,10), imaginary=rnorm(100,10,10))
# Create a matrix of complex variables
z <- cbind(x,y)
# Calculate measures
cvar(x)
cvar(z)
ccor(x,y)
ccor(z)
Run the code above in your browser using DataLab