Using Simulink     Search    Help Desk 
Complex to Magnitude-Angle

Compute the magnitude and/or phase angle of a complex signal.

Library

Math

Description

The Complex to Magnitude-Angle block accepts a complex-valued signal of type double. It outputs the magnitude and/or phase angle of the input signal, depending on the setting of the Output parameter. The outputs are real values of type double. The input may be a vector of complex signals, in which case the output signals are also vectors. The magnitude signal vector contains the magnitudes of the corresponding complex input elements. The angle output similarly contains the angles of the input elements.

Data Type Support

See the description above.

Parameters and Dialog Box

Output
Determines the output of this block. Choose from the following values: MagnitudeAndAngle (outputs the input signal's magnitude and phase angle in radians), Magnitude (outputs the input's magnitude), Angle (outputs the input's phase angle in radians).

Characteristics

Direct Feedthrough
Yes
Sample Time
Inherited from driving block
Scalar Expansion
No
Vectorized
No
Zero Crossing
No



[ Previous | Help Desk | Next ]