Академический Документы
Профессиональный Документы
Культура Документы
Problem 6.1
Solution
Problem 6.3
Solution
X ( )
1 y[n]
x[n]
2
B
In all cases
2
Y
2 X
1
2 X
1
2 for all
2
Y
2 X
1
a) B
5
2 . Then there is no aliasing after downsampling and therefore Y is as shown below
X ( ) Y ( )
1 1
x[n] y[n]
2 2
2
5 5
b) B
2 . Then again there is no aliasing after downsampling and therefore Y is as shown below
X ( ) Y ( )
1 1
x[n] y[n]
2 2
2
c) B
3
4 . In this cases there is aliasing and we have to account for it. Best way to do it is proceed in
two steps: sampling and then downsampling.
Solutions_Chapter6[1].nb 5
1
2
2 3
2
4
1
X ( ) 1
2
2
2
4
2
2 , just a rescaling of the frequency axis. The final results is
Then downsampling yields Y Y
shown below.
Y ( )
3
4 4
Y ( ) 1/ 2
1/ 3
2
6 Solutions_Chapter6[1].nb
2
and therefore Y Y 1 for all .
2
Problem 6.4
Solution
2 2 n 2 1 1 2 1 e
Recall that yn x jn
2 x 2 x
n 1 n n 1 n
a) yn n;
b) yn
2 1 1un
1 n
c) yn
1 ej0.05n
1 ej0.05n
d) yn j0.05n un
2 2
2 e
j0.05n
2 e
1 1
yn j0.05n un j0.05n un
e)
j0.05n
4 e
j0.05n
4 e 4 e 4 e
1 1 1 1
which becomes
yn
2 cos0.05nun
1
2 cos0.95nun
1
f) similarly yn
2 cos0.05n
1
2 cos0.95n
1
Problem 6.5
Solution
2 X2
2 X
S
S
2 X2
2 X 2
Therefore
Y
2 X
1
2 X 2 X
1
Problem 6.6
Solution
yn
xn if n even
2 Xz Xz, or equivalently,
1
Y
2 X X .
1
One way we can verify this is the following: call vn the output of the downsampler. Then
2 X
V
2 X
1
2
Problem 6.7
Solution
X ( )
x[n] xM [n] y[n]
1 2
4
s[n ]
The effect of modulation on the frequency spectrum is as follows
DTFTxM n
2 X 0
1
2 X 0
1
8 Solutions_Chapter6[1].nb
where xM n xncos0 n.
After upsampling by 2 the signal yn has DTFT
2 X2 0
Y XM 2 2 X2 0
1 1
X M ( )
1/ 2
2 4
2 2
Y ( )
1/ 2
8
. Then X and Y are shown below.
b) 0
2 M
X M ( )
1/ 2
2 4 2 2
Y ( )
1/ 2
4
c) 0 . Then XM and Y are shown below.
Solutions_Chapter6[1].nb 9
X M ( )
1
3
2 4 2
2 Y ( )
1
2
In this case notice the maximum amplitude of the DTFT being "one" (rather then 1/2 as in the previous
cases). This is due to the fact that X X .
Problem 6.8
Solution
In this problem we need to increase the sampling frequency from Fs 8kHz to Fs 12kHz, ie by
a factor
8
12 3
2 . Therefore with ideal filters the scheme is as shown below.
H ( )
3
10 Solutions_Chapter6[1].nb
Problem 6.9
Solution
In this case the Low Pass Filter H is a non ideal FIR filter. The whole problem is to choose the
correct specifications for the filter.
The stopband has to be S 3 , since the purpose of this filter is to stop the frequency artifacts
generated by the upsampling operation. The passband has to be decided on the basis of the bandwirdth
we need a hamming window (from the desired attenuation) with transition region 8 N.
of the signal we want to pass and the desired complexity of the filter. For a window based, recall that
Therefore an FIR filter of length N will have a passband p 3
8
N .
Problem 6.10
Solution
Problem 6.11
Solution
12 z1
Hz
10.25z 2
0.5
10.25z
f) Hz
z
z0.8 which can be written as
Hz 0.8n zn 0.82n z2n z1 0.82n1 z2n . This becomes
n0 n0 n0
12 z1
Hz
10.64z 2
0.8
10.64z
z1
2 2
Hz
z
z0.8
z0.8
z0.8
z
z2 0.64
0.8z
z2 0.64
amd you can verify that the two answers are the same.
g) You can verify that the general exprezzion for the polyphase terms is
Hk z hnM kzn
n
Problem 6.12
Solution
x[n] y[n]
4 H 0 ( z)
z 1
4 H1 ( z )
z 1
4 H 2 ( z)
1
z
4 H 3 ( z)
x[n] y[n]
H 0 ( z) 4
z 1
H1 ( z ) 4
z 1
H 2 ( z) 4
z 1
H 3 ( z) 4
c) When M 2 the polyphase decomposition becomes H0 z 1 2z1 z2 z3 and
Hz 1 z1 z2
Therefore the system becomes as shown below:
x[n] y[n]
2 2 H 0 ( z)
z 1
2 H1 ( z )
Now notice that the cascade upsampler - downsampler (both by 2) is just an identity. Also the cascede
upsampler - time delay - downsampler as shown gives an output of zero, no matter what the input is
(easy to verify). This is shown below:
2 2
2 z 1 2 0
Therefore the overall system looks like this one:
Solutions_Chapter6[1].nb 13
x[n] y[n]
H 0 ( z)
Applications of MultiRate
Problem 6.13
Solution
a) In digital frequency, the passband is P 2 25 6000 120 radians, and the stopband
is S 2 30 6000 100 radians. As a consequence the transition region is
S P 0.0017. For a 60 dB attenuation we can use (say) a Kaiser window with parame-
ters
0.110260 8.7 5.6533
N
4, 261.1
608
2.285
frequency (6kHz) down to 60Hz, ie by a factor D 6, 000 60 100. As seen in class, this can be
b) Since we want to reject all frequencies above 30Hz, we can downsample from the orginal sampling
H1 10 H2 5 H3 2
x[n ]
Now the specifications of the filters become as follows:
14 Solutions_Chapter6[1].nb
N2
34
608
2.285
N3
87
608
2.285
Problem 6.14
Solution
p 44, 000 rad sec. The stopband has to be at half the sampling frequency, ie
Then for the reconstruction filter, the passband is Fp 22kHz 2 22, 000, that is to say
Solving for N gives a very large number, and the analog filter cannot be implemented. Furthermore
there will be a distortion in phase from the reconstruction filter itself.
Q2) Now the filter has still the same expression, but with N 4, since we are restricted to a 4 pole
filer. Therefore the filter is given by
H 2
1
8
10.0203
44,000
Since we want the attenuation to be 40dB in the stopband, we can solve for the stopband, as
Solutions_Chapter6[1].nb 15
1
8 0.012 104
10.0203
44,000
which yields
4 18
S 10 1
44,000 0.0203 5.1470
Therefore the stopband of this filter is at FS 5.1470 22kHz 113.24kHz. This has to coin-
cide with half the sampling frequency, and therefore the new sampling frequency is
Fs 2 113.24kHz 226.5kHz. In other words we have to upsample at least by
226.5/44.1=5.1 times before the Digital to Analog conversion.