R2C: Real/complex manipulation

Description Usage Arguments Value Author(s) See Also Examples

Description

Convert objects to a complex vector

Usage

1
2
3
R2C(ww)
listxy2C(x)
matrix2C(x)

Arguments

ww

A real vector representing alternating real/imaginary pairs or a complex vector

x

A list having two components or a matrix having two columns representing the real and imaginary parts of a complex vector

Value

a complex vector

Author(s)

Nick Ellis, nick.ellis@csiro.au

See Also

C2R, listxy2R, matrix2R

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
x <- 1:10
y <- 10:1
mat <- cbind(x,y)
lis <- list(x,y)
xy <- as.vector(t(mat))
z1 <- R2C(xy)
z2 <- listxy2C(lis)
z3 <- matrix2C(mat)
all(z1==z2)
all(z1==z3)

conformal documentation built on May 2, 2019, 5:47 p.m.

Related to R2C in conformal...