This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Complex to Magnitude-Angle

Compute magnitude and/or phase angle of complex signal


Math Operations


The Complex to Magnitude-Angle block accepts a complex-valued signal of type double or single. 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 the same data type as the block input. The input can be an array of complex signals, in which case the output signals are also arrays. The magnitude signal array 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 preceding description.



Determines the output of this block. Choose from the following values: Magnitude and angle (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).

Sample time


Data Types

Double | Single

Sample Time

Inherited from driving block

Direct Feedthrough


Multidimensional Signals


Variable-Size Signals


Zero-Crossing Detection


Code Generation


Introduced before R2006a

Was this topic helpful?