Engee documentation

Complex to Magnitude-Angle

Calculation of the modulus and/or phase angle of a complex signal.

complex to magnitude angle

Description

The Complex to Magnitude-Angle block outputs the modulus and/or phase angle of the input signal depending on the Output setting. Output signals are real values of the same data type as the block input signal. The input signal can be an array of complex signals, in which case the output signals are also arrays. The array of module signals contains the modules of the corresponding complex input elements. The angle output signal similarly contains the angles of the input elements.

Ports

Output

# |u| — module
scalar | vector | matrix | N-dimensional array

Details

An output signal that is a modulus of the input signal.

Dependencies

To use this port, set Output to Magnitude and angle or Magnitude.

Data types

Float32, Float64.

Complex numbers support

No

# ∠u — phase angle
scalar | vector | matrix N-dimensional array

Details

Phase angle in radians as a real scalar, vector or matrix.

To use this port, set the Output parameter to Magnitude and angle or Angle.

Data types

Float32, Float64.

Complex numbers support

No

Input

# u — input signal
scalar | vector | matrix | N-dimensional array

Details

A complex input signal from which the unit calculates and outputs modulus and/or phase angle.

Data types

Float32, Float64.

Complex numbers support

Yes

Parameters

Main

# Output — output signal specification
Magnitude | Angle | Magnitude and angle

Details

Specify the output data:

  • Magnitude - modulus.

  • Angle - angle in radians.

  • Magnitude and angle - modulus and angle.

Values

Magnitude | Angle | Magnitude and angle

Default value

Magnitude and angle

Program usage name

Output

Tunable

No

Evaluatable

No