A complex sinusoid is denoted as
∀
n,k
,0≤n,k≤N−1:ei2πNkn
n,k
0
n,k
N
1
2
N
k
n
where nn is the time index and
kk is the frequency index. The
same equation with frequency,
∀
ω
k
,0≤
ω
k
≤2π:
ω
k
=2πNk
ω
k
0
ω
k
2
ω
k
2
N
k
,
is written as:
ei
ω
k
n
ω
k
n
C
sinusoid proceeds CCW around the unit circle (because
|ei
ω
k
n|=1
ω
k
n
1
)
with step size (in angle)
ω
k
ω
k
.
C
sinusoid makes exactly
kk
revolutions of the circle and repeats when
n=N
n
N
at the
n=0
n
0
spot.
Read off real and imaginary parts:
ei
ω
k
n=cos
ω
k
n+isin
ω
k
n
ω
k
n
ω
k
n
ω
k
n
by motion along real and imaginary axes.
Consider the following examples:
Notice that for
n=3
n
3
,
the plot is exactly like the one for
k=1
k
1
in
Example 4,
but moves backwards (CW) around the circle.
Negative frequency is nothing bizarre; it just means that we
move around the circle CW rather than CCW. Figure 15 shows how to do this for
N=8
N
8
.
In general, this is easy to show:
ei2πNkn=ei2πNknei2πNN=ei2πN(k+N)n
2
N
k
n
2
N
k
n
2
N
N
2
N
k
N
n
For example, for
N=8
N
8
,
k=-1
k
-1
and
k=-1+8=7
k
-1
8
7
yield the same sinusoid.
ei2πNkn=ei
ω
k
n
2
N
k
n
ω
k
n
(2)
ω
k
=2πNk
ω
k
2
N
k
Matlab's
fftshift command swaps left and right
halfs of a vector:
x=Bα
x
B
α
α=BHx
α
B
x
Now replace αα by capital
XX:
x=BX
x
B
X
X=BHx
X
B
x
xn
↔
DFT
Xk
x
n
↔
DFT
X
k