Professional Documents
Culture Documents
Lecture – 9 Objectives
What is filter?
M
yn bm xn m
m 0
Furthermore, h(0) = b0, h(1) = b1,... , h(M) = bM, while all other
h(n)'s are 0.
N
ak yn k xn
k 0
N M
a yn k b xn m
k 0
k
m 0
m
We will now use this theory for the processing of digital signals.
To process signals, we have to design and implement systems
called filters (or spectrum analyzers in some contexts).
Since our filters are LTI systems, we need the following three
elements to describe digital filter structures.
Adder: This element has two inputs and one output. Three or more signals is
implemented by successive two-input adders.
Multiplier (gain): This is a single-input, single-output element. Nothing is
indicated means multiplication by 1.
Delay element (shifter or memory): This element delays the signal passing
through it by one sample. It is implemented by using a shift register.
Y z m
M
1 2 M
b z
H z
b b z b z ...... b z
m 0
a0 1
m 0 1 2 M
;
X z 1 ak z
N k 1
1 a1z a2 z ...... aN z
2 N
k 1
which can be
implemented
as shown in
figure.
Direct form-I
IUB Dr. Abdur Razzak 9
Direct form (contd..) ECR 305_L9
There are two separate delay lines in this structure, and hence it
requires eight delay elements.
Direct form-II
IUB Dr. Abdur Razzak 10
FIR filter structures ECR 305_L9
b , 0 n M 1
hn n
0, otherwise
The order of the filter is M–1, while the length of the filter (which
is equal to the number of coefficient) is M.
The FIR filter structure is always stable, and they are relatively
simple compared to IIR structures.
H z 1 16
1 4
z z 8
16
Determine the diff equation and draw the direct form structure.
Solution:
MATLAB
Examples
In practice (and especially for processing signals) the use of the filter
function is encouraged.
IUB Dr. Abdur Razzak 20
MATLAB functions (contd..) ECR 305_L9
N M
a yn k b xn m
k 0
k
m 0
m
FIR Filter
Design
IUB Dr. Abdur Razzak 23