| Library: | math |
| See also: | creal cimag |
| Macro: | complex | |
| Description: | Generates a complex array |
| Usage: | z = complex (re {, im}) | |
| Input: | ||
| re | n x p x d1 x ... x dn array real part of x | |
| im | n x p x d1 x ... x dn array imaginary part of x | |
| Output: | ||
| z | n x p x d1 x ... x dn complex array | |
library("math")
z = complex (0, 1)
z
//Generates the complex object sqrt(-1) Contents of z.re [1,] 0 Contents of z.im [1,] 1
| Library: | math |
| See also: | creal cimag |