Bme3361 L03
Bme3361 L03
%#$
! %#$
! "
! "#$ ! " ! %#$ % %#$ " "#$
Negative ak is
equivalent to phase of π 1 2 3 4 5 6 7 k
!
M
j 2πk
T t
! Complex form: x̃(t) ≈ ck e
k=−M
3$!
!"!#
!!""
3%!
3&!
!"!4 ! #!!! $!!! %!!! &!!!
56*7+,+89
!
$%&'#!1"(
/
3!"!4
! !"!!# !"!!$ !"!!% !"!!& /!"
'()*+,+-*.
!
</!"
</
! #!!! $!!! %!!! &!!!
2# ambiguity 56*7+,+89
$ # j! n
= %n=0 ("e ) ! !
S = " c # cS = " c
n n
!" !"#"_$#&t 1
#$ = # j!
n =0 n =1
%
1 # "e # S $ cS = c = 1 0
!!""#t#! $%&'!""#t#(
# /
1 ( |c | < 1 )
"
/ "/ #/ $/ %/
t
#S =
&
! / "/ #/ $/ %/
t
</
1$c
Dan Ellis 2013-09-23 13
Periodicity of X(ejω)
! X(ejω) has periodicity 2π in ω :
X(e j (! +2 " )
) = # x[n]e $ j (! +2 " )n
= # x[n]e $ j!n
e $ j 2 "n
= X(e ) j!
!!""#t#! $%&'!""#t#(
# /
" t
/ "/ #/ $/ %/
&
t
</
! / "/ #/ $/ %/
n="#
" j! 0
=e =1 (for all ω)
-3 -2 -1 1 2 3 n -π π ω
# j! # j! # j!
"e 1 # "e + "e
= 1+ # j!
= # j!
1 # "e 1 # "e
1
= # j! x[n] = αn μ[n]
1 # "e
Dan Ellis 2013-09-23 23
#
2
" xcs[n] " Re{X(ejω)}
" xca[n] " jIm{X(ejω)}"
Dan Ellis 2013-09-23 24
DTFT of real x[n]
! When x[n] is pure real, X(ejω) = X*(e-jω)
XCS
xcs[n] $ xev[n] = xev[-n] XR(ejω) = XR(e-jω)
xca[n] $ xod[n] = -xod[-n] XI(ejω) = -XI(e-jω)
&'#(
!%&!$"
= %k ( g[k]e # j!k
%n h[n # k]e # j! (n #k )
)
j! j!
= G(e ) & H (e )
Convolution
j# j#
g[n]! h[n] " G(e )H (e ) becomes
multiplication
Dan Ellis 2013-09-23 26
Convolution with DTFT
j# j#
! Since g[n]! h[n] " G(e )H (e )
we can calculate a convolution by:
! finding DTFTs of g, h " G, H
! multiply them: G!H
! IDTFT of product is result, g[n]! h[n]
G(e j! )
g[n] DTFT
Y (e j! ) y[n]
IDTFT
h[n] DTFT
H (e j! )
1 ! "e
" y[n] = δ[n] i.e. ...
Dan Ellis 2013-09-23 28
ParsevalÕs relation
! ÒEnergyÓ in time and frequency domains
are equal:
1 #
" g[n]h [n] = 2# &% # G(e )H (e )d$
* j$ * j$
!n
1 "
%$ " G(e j# 2
! By Parseval !g = ) d#
2"
! Define Energy Density Spectrum (EDS)
j! j! 2
Sgg (e ) = G(e )
N n=0
N !1 2π/N
! DFT: X[k] = " x[n]W N
kn
1
n=0 WN
2"
!j
where WN = e N
i.e. -1/Nth of a revolution
! i.e. X = DN ! x
Dan Ellis 2013-09-23 37
Matrix IDFT
! If X = DN ! x
!1
then x = DN " X
! i.e. inverse DFT is also just a matrix,
1 1 1 ··· 1
−(N −1)
1
WN−1 WN−2 ··· WN
1
1 WN−2 WN−4
−2(N −1)
WN
D−1
N = ···
N .. .. .. .. ..
. . . . .
−(N −1) −2(N −1) −(N −1)2
1 WN WN ··· WN
=1/NDN*
Dan Ellis 2013-09-23 38
DFT and MATLAB
! MATLAB is concerned with sequences
not continuous functions like X(ejω)
! Instead, we use the DFT to sample
X(ejω) on an (arbitrarily-fine) grid:
! X = freqz(x,1,w); samples the DTFT
of sequence x at angular frequencies in w
! X = fft(x); calculates the N-point DFT
of an N-point sequence x
1 2 3 4
n 1 2 3 4
n
5-pt sequence
!"#$#%&'!#%()"
! Written as g[n] !
N h[n]
g[n] 4 h[n]={4 7 5 4}
h[<n - 0>4] n !1
1 2 3
h[<n - 1>4] n !2
1 2 3
h[<n - 2>4]
1 2 3 n
n !0
1 2 3