Beruflich Dokumente
Kultur Dokumente
1. An IIR digital band-pass filter meeting the specifications given below is required. Starting
with a suitable normalized analogue low-pass filter obtain the coefficients of its transfer
function H(z).
Solution:
If a low pass filter is to be converted to a band pass filter, then we use the following
frequency transformation.
2
s 2 O
s ………(1)
Ws
where W p2 p1 ……..(2)
Here p1 is the lower cutoff frequency and p2 is the upper cutoff frequency of the pass
band(Lai, 2004).
According to Lai (2004), the normalized transfer function of a second order Butterworth filter
1
is H ( s) ……(4)
s 2s 1
2
(Ws) 2
2
2
( s 2 0 ) 2 2 s 2 0 Ws (Ws) 2
Substituting the corresponding values and simplifying the equation we have,
0.25s 2
H ( s )
( s 2 1.5) 2 2 s 2 1.5 0.5 s 0.25s 2
0.25s 2
s 4 0.707 s 3 3.25s 2 1.06s 2.25
z 1
H(z) can be written by substituting s= in H’(s). Thus we have,
z 1
2
z 1
0.25
H ( z) z 1
4 3 2
z 1 z 1 z 1 z 1
0.707 3.25 1.06 2.25
z 1 z 1 z 1 z 1
0.25 z 1 z 1
2 2
z 1 0.707 z 1 z 1 3.25 z 1 2 z 1 2 1.06 z 1 z 1 3 2.25 z 1 4
4 3
0.25 z 4 2 z 2 1
z 4 4 z 3 6 z 2 4 z 1 0.707 z 4 2 z 3 2 z 1 3.25 z 4 2 z 2 1 1.06 z 4 2 z 3 2 z 1 2.25 z 4 4
=
0.25 1 2 z 2 z 4
1 4 z 1
6z 2
4z 3
0.7071 2 z
z 4 1
2z 3
z 4
3.25 1 2 z 2 z 4 1.06 1 2 z 1 2 z 3 z
0.25 1 2 z z 2 4
8.267 5.706 z 1 13 z 2 4.294 z 3 4.733 z 4
15 p for 2 p 12
q
0 for p 2, p 12
Solution:
From the question, we have
15 15 13 14 14
13 13 15 0 0
15 p for 2 p 12
q and p 0 0 4 4 4
0 for p 2, p 12
0 1 4 4 4
15 14 4 4 4
By applying the transformation function, we get,
0 0 0 0 0
0 0 0 0 0
q 0 0 11 11 11
0 0 11 11 11
0 0 11 11 11
0 0 0 0 0 15 15 13 14 14 0 1 0 0 0
1 0 0 1 1 13 13 15 0 0 0 0 0 1 0
F 0 0 0 0 0 0 0 4 4 4 0 0 0 1 0
0 1 1 0 0 0 1 4 4 4 0 1 0 0 0
0 0 0 0 0 15 14 4 4 4 0 1 0 0 0
0 0 0 0 0 0 1 0 0 0
0 0 5 6 6 0 0 0 1 0
F 0 0 0 0 0 0 0 0 1 0
13 13 11 4 4 0 1 0 0 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 0
0 12 0 5 0
F 0 0 0 0 0
0 21 0 2 0
0 0 0 0 0
We can come to a conclusion that DCT tracks the signal energy of the image.
1 1
The given convolution mask is 1 1
The following convolution mask is multiplied with q to get the elements A to Q.
A
B
C
D
E G
H
I
J
K
L
M
N O
P
Q
0 0 0 0 1
0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 1 1 0 0 0 0 0 0 0 0
A 0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 1 1 0 0 0 0 0 0 0
0 0 0 0 0 0 1 1 0 0 0 0 0 0 0
B 0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 1 1 0 0 0 0 0 0
C 0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
D 0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 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11 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
M 0 0 11 11 11 0 0 0 1 1 0 0 0 0 0
0 0 11 11 11 0 0 0 1 1 0 0 0 0 0
0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
N 0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 1 1 0 0 0 0 0 0 0 0
0 0 11 11 11 1 1 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
O 0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 1 1 0 0 0 0 0 0 0
0 0 11 11 11 0 1 1 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
P 0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 1 1 0 0 0 0 0 0
0 0 11 11 11 0 0 1 1 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Q 0 0 11 11 11 0 0 0 0 0 0 0 0 0 0
0 0 11 11 11 0 0 0 1 1 0 0 0 0 0
0 0 11 11 11 0 0 0 1 1 0 0 0 0 0
Substituting all the elements back into the matrix, we get the output.
0 0 0 0 0
0 0 0 0 0
Output 11 22 22 22 11
11 22 22 22 11
11 22 22 22 11
Convolution masks are generally used to achieve filtering effect. Here from the above,
elements may have coefficients as ‘=’ or ‘-‘. The summation would lead to 0. Hence we end
up eliminating DC component.
1 az
1
a) Sketch the direct form I and direct form II realisations of this filter and find the
corresponding difference equation.
b) Sketch the pole-zero pattern for a=0.5 and b=-0.6 and comment on stability.
c) Determine the value of c when a=-0.5 and b=0.5 such that maximum value of H(z) is
equal to 1.
Solution:
a) Direct form-I and Direct form-II realisations and difference equation
Given, H ( z ) c
1 bz 1
1 az 1 …….(1)
c bcz 1
or H ( z )
1 az 1
Thus the Direct form-I is
X(z) c Y(z)
∑
z-1 z-1
bc -a
X(z) c ∑ ∑ Y(z)
z-1
-a b
1
Y ( z ) c bcz
We know that H ( z )
X ( z) 1 az 1
Y ( z )[1 az 1 ] X ( z )[c bcz 1 ]
1 0.5 z 1
c) When a=-0.5 and b=0.5, find c such that maximum value of H(z) is equal to 1.
H ( z) c
1 0.5 z
1
1 0.5 z
1
H (e j t
)c
1 0.5e j t
1 0.5e j t
Also, e jt cos t j sin t , hence
H (e jt ) c
1 0.5 cos t j sin t
1 0.5 cos t j sin t
c
(1 0.5 cos t ) 0.5 j sin t
(1 0.5 cos t ) 0.5 j sin t
H (e jt ) c
(1 0.5 cos t ) 2 0.5 j sin t
2
1.25 cos t
c
1.25 cos t
Solution:
( z 1)
Given that H ( z )
( z 0.7071)
Thus H(z) has 1 pole and 1 zero.
At z e jt , we have
U e jT 1
H (e jT ) jT
V e 0.7071
1 cos(T ) j sin(T )
cos(T ) 0.7071 j sin(T )
i. At DC, we have T 0 .
Substituting this in above equation,
1 cos(0) j sin(0)
H (e jT )
cos(0) 0.7071 j sin(0)
Thus the pole and zero are 20 o and 0.29290o
The frequency response is H (e jT ) 2 / 0.2929 6.8280 o
s
ii. At , T s
8 8 Fs 4
where s is sampling frequency
1 cos( ) j sin( )
H (e jT ) 4 4
cos( ) 0.7071 j sin( )
4 4
1.847722.5 o
H ( e j T ) 2.6131 67.5 o
0.707190 o
s
iii. At , T s
4 4 Fs 2
1 cos( ) j sin( )
H (e jT ) 2 2
cos( ) 0.7071 j sin( )
2 2
1.1547 80.26
3 s 3
iv. At , T
8 4
3 3
1 cos(
) j sin( )
H ( e j T ) 4 4
3 3
cos( ) 0.7071 j sin( )
4 4
0.4840 85.93
s
v. At , T
2
1 cos( ) j sin( )
H (e jT ) 00
cos( ) 0.7071 j sin( )
1
ii.
x( n) 3
0
n 0n6
elsewhere
1 2 n 2
h(n)
0 elsewhere
Solution:
i. Given x( n) u (n) u (n 5) and
h(n) u ( n 2) u (n 8) u (n 11) u ( n 17)
1 n 1
We have, u (n) 0
n0
Graphically we can represent x(n) as,
u(n) 1
u(n-5) 1
u(n)-u(n-5) 1
0 5
and h(n) can be represented as:
u(n-2) 1
u(n-8) 1
u(n-11) 1
u(n-17) 1
1
(ii) Given
x( n) 3
0
n 0n6
elsewhere
1 2 n 2
h(n)
0 elsewhere
Solution:
The values of x(n) and the corresponding graph are shown x(n)
x(0)=0;
x(1)=1/3=0.333 2
x(2)= 2/3=0.667
x(3)=3/3=1
x(4)=4/3=1.333 1
x(5)=5/3=1.667
x(6)=6/3=2
0 1 2 3 4 5 6 x (n)
Similarly for h(n) we have,
h(n)
h(-2)=1
h(-1)=1 2
h(0)=1
h(1)=1
1
h(2)=1
-2 -1 0 1 2 n
References:
Lai Edmund, 2004. Practical Digital Signal Processing For Engineers And
Technicians. MA: Newnes.
Lyons G. Richard, 2004. Understanding digital signal processing. 2nd Edition. New
Jersey: Prentice Hall.
Moniri .M, 2010. Digital Signal Processing lecture notes, Digital Signal Processing
CE001557. Staffordshire University, Unpublished.