Engee documentation

Complex to Magnitude-Angle

Calculates the modulus and/or phase angle of the complex signal.

blockType: ComplexToMagnitudeAngle

Path in the library:

/Basic/Math Operations/Complex to Magnitude-Angle

Description

Block Complex to Magnitude-Angle outputs the modulus and/or phase angle of the input signal depending on the parameter setting Output. The output signals are real values of the same data type as the block input signal. The input signal may 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 the parameters to Output value Magnitude or Magnitude and angle.

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.

Dependencies

To use this port, set the parameters to Output value Angle or Magnitude and 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 - Module.

  • 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