Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Functions

real

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Returns the real part of a number or matrix.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out = real(x);

Returns the real part of x.

 

Example

Calculate the real part of numbers in an array.

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

result: 

0+0i 

2+1i 

 

?real(x);

result: 

 

See Also

Functions, imag

Copyright Lumerical Inc. | Privacy | Site Map