FinalExam For Zhank
FinalExam For Zhank
Problem 1
Given the sequence having 4 data points as , and
the sampling period of seconds, no window function is used.
a. Sketch the 4-points fast Fourier transform algorithm (Decimation in frequency FFT) to compute
the DFT coefficients: X(0), X(1), X(2), X(3)
(10 points)
solution
Thus
a. Sketch the 4-points fast Fourier transform algorithm (Decimation in frequency FFT) to compute
the DFT coefficients: X(0), X(1), X(2), X(3)
We compute X(k)
b. Compute the amplitude spectrum
We compute
When k=1
Problem 2
Given the following DSP system with a sampling rate of 8000 Hz
d. Compute the filter gain at the frequency of 0 Hz, 1000 Hz, 2000 Hz, 3000Hz, 4000 Hz,
respectively. Make a plot of the magnitude frequency response.
e. Determine the filter type, that is, the lowpass filter, or high-pass filter, or bandpass filter, or
band-stop filter. (10 points)
solution
a. Obtain transfer function
zeros:
poles:
d. Compute the filter gain at the frequency of 0 Hz, 1000 Hz, 2000 Hz, 3000Hz, 4000 Hz,
respectively. Make a plot of the magnitude frequency response.
So, the filter gain at 0 Hz, 1000 Hz, 2000 Hz, 3000Hz, 4000 Hz are
e. Determine the filter type, that is, the lowpass filter, or high-pass filter, or bandpass filter, or
band-stop filter.
(10 points)
solution
a. List the FIR filter coefficients
Here , then
So, we compute
Then,
fs=8000;
f=[ 0 0.15 0.25 0.4 0.5 1]; % edge frequencies
m=[ 1 1 0 0 1 1]; % ideal magnitudes
w=[ 10 15 10 ]; % error weight factors
format long
b=remez(24,f,m,w) % Parks-McClellen algorithm and Remez exchange
(5 points)
solution
(1) Determine the edge frequencies in Hz for passband and stopband
(10 points)
solution
a. Determine the transfer function
rad/s, Hz
order of Butterworth: 2 / 2 = 1
zeros: -1, +1
(10 points)
solution
(a) Determine the DSP equations using the LMS algorithm
for k= 0, 1; that is, write the equations for all adaptive coefficients:
Then
Problem 7
Given a DSP system with a sampling rate set up to be 8,000 samples per second, implement
adaptive filter with 5 taps for system modeling.
tow taps:
a. Determine the DSP equations using the RLS algorithm with and .
(10 points)
solution
a. Determine equations using the RLS algorithm. [initialization for ]
b. Repeat (b) using the RLS algorithm with δ=1 and λ=0.96.
Then
Problem 8
The following Wiener filter is used to predict the sinusoid
Find the Wiener filter coefficients: , and , and the minimized the cost function of
(15 points)
solution
Here we define
Here we have
As we can see, the minimized the cost function of is a very complex and
long expression
b. determine the window type, filter length, and cutoff frequency if the window method is used
for the combined FIR filter H(z).
(10 points)
solution
a. draw the block diagram for the interpolator;
b. determine the window type, filter length, and cutoff frequency if the window method is used
for the combined FIR filter H(z).
cutoff frequency
Problem 10
For the design of a two-stage decimator (M1xM2=5x3) with the following specifications:
c. determine the window type, filter length, and cutoff frequency for each stage if the window
method is used for anti-aliasing FIR filter design
(10 points)
solution
a. Draw the decimation block diagram;
c.
A. determine the window type, filter length, and cutoff frequency for the first stage H1(z);
filter length,
B. determine the window type, filter length, and cutoff frequency for the second stage H2(z)
filter length,
cutoff frequency