Phase Extractor
Extract the unwrapped phase of a complex input
Libraries:
DSP System Toolbox /
Signal Operations
Description
The Phase Extractor block extracts the unwrapped phase of a complex input.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Algorithms
Consider an input frame of length N:
The step
method acts on this frame and produces this output:
where:
Here, i runs from 1 to N. The angle
function returns the phase angle in radians.
If the input signal consists of multiple frames:
If you set
TreatFramesIndependently
totrue
, thestep
method treats each frame independently. Therefore, in each frame, thestep
method calculates the phase using the preceding formula where:is 0.
is 1.
If you set
TreatFramesIndependently
tofalse
, thestep
method ignores boundaries between frames. Therefore, in each frame, thestep
method calculates the phase using the preceding formula where:is the last unwrapped phase from the previous frame.
is the last sample from the previous frame.