DFT Phase
Discover how the phase plot of a DFT is generated.
We'll cover the following
The magnitude plot is drawn by taking the absolute values of the complex DFT output. It might seem that the phase plot is not very useful. This is not true.
- The magnitude plot tells us about the level of contribution in the signal from each participating sinusoid.
- The phase plot tells us about the alignment of those sinusoids with respect to the origin.
Time shift
Let’s consider a rectangular signal in which and . This signal has the following samples:
Now recall the following two facts:
- Due to DFT periodicity in both the input and output, the last samples (from to ) are the same as the samples from to . These are actually samples to the left of zero.
- In this kind of setup, the signal above is simply a right shift of the sequence below:
From the two expressions above, we can write the following:
Phase plot
The phase plot of above should be due to symmetry around zero. However, is a right circular shift by of . Therefore, the phase at each bin for a shift of should become:
We will derive this property of the DFT in the next chapter.
For the example above, where and , the phase at bin should be:
This is visible in the phase plot of below. The second subplot is a zoomed-in version of the first.
Get hands-on with 1400+ tech skills courses.