Please enable JavaScript to view this site.

Knowledge Base

Returns the imaginary part of a number or matrix.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out = imag(x);

Returns the imaginary part of x.

 

Example

Calculate the imaginary part of numbers in an array.

?x=linspace(0, 2+1i,2);

result: 

0+0i 

2+1i 

 

?imag(x);

result: 

1

 

See Also

Functions, real, conj

Copyright Lumerical Inc. | Privacy | Site Map