Download as pdf or txt
Download as pdf or txt
You are on page 1of 28

Digital Signal Processing

Lecture 4
Ideal Digital Filters

Dr. Tahir Zaidi


DTFT- Sinusoids
DTFT of Unit Impulse
Ideal Lowpass Filter
Example
Magnitude and Angle Form
Magnitude and Angle Plot
Example
Real and Even ( Zero Phase)

Consider an LTI system with an even


unit sample response

= e2 jw + 2e jw + 3 + 2e - jw + e -2 jw
DTFT is = 2cos(2w ) + 4cos(w ) + 3
Real & Even (Zero Phase)

▪ Frequency response is real, so system


has “zero” phase shift
▪ This is to be expected since unit
sample response is real and even.
Linear Phase

H (e jw ) = e 2 jw + 2e jw + 3 + 3e - jw + e -2 jw
= e - 2 j w ( e 2 j w + 2e j w + 3 + 2e - j w + e - 2 j w )
= e - 2 jw (2 cos(2w ) + 4 cos(w ) + 3)
Useful DTFT Pairs
Convolution Theorem
Linear Phase… ( cont.)
Frequency Response of DE
Matlab
Matlab
[H,W] = FREQZ(B,A,N) gives N-point complex frequency
response vector H and the N-point frequency vector W in
radians/sample

H = FREQZ(B,A,W) gives frequency response at vector W

[H,F] = FREQZ(B,A,N,Fs) return frequency vector F (in Hz)

H = FREQZ(B,A,F,Fs) gives complex frequency response at vector


F in Hz

FREQZ(B,A,...) with no output arguments plots the magnitude and


unwrapped phase of the filter in the current figure window.
Example
Ideal Filters
Ideal Filters
HP Digital Filter from LP Design
BP Digital Filter from HP & LP
Ideal Lowpass Filter
h[n] of ideal filter
Approximations
Freq Axis
Inverse System

You might also like