Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Check the attached file for the questions. The assignments should be treated as small reports (in word or PDF beside .m files). In addition to the problem solutions, MATLAB code, and graphs, you will...

1 answer below »
Check the attached file for the questions.
The assignments should be treated as small reports (in word or PDF beside .m files). In addition to the problem solutions, MATLAB code, and graphs, you will need to provide an explanation of what you are calculating and the reasons for various DSP operations (just a small paragraph for each question).
Document Preview:

ELEC4630/7462 Digital Signal Processing Assignment 3 (Due Date: 20/09/2013) 1. We wish to extract tones at 50 and 100 Hz from tones at 1000 and 1100 Hz and then downsample the output by the largest possible factor. Assume the signal containing the four tones is sampled at 16 kHz. Use a Kaiser window FIR filter with a passband from 0 to 150Hz (1 dB down at band edge) and attenuation > 60 dB at 250 Hz. Implement the filter, downsample the output, and examine the output spectrum to ensure that it meets specifications. Now reimplement the filtering and downsampling with a single polyphase downsampling filter. Compare the number of operations required for the original FIR implementation and the downsampling implementation. (4 marks) 2. Upsample the output of the downsampling filter of Question 1 back to the original 16 kHz sampling rate by designing an appropriate upsampling filter using zero packing and low-pass filtering. Then reimplement as a polyphase upsampling filter. Check the output of the polyphase upsampler against the filtered zero-packed output to show they are the same. Compare the number of operations required for the original single-rate FIR implementation from Q1 and the polyphase downsampling/upsampling implementation in this question. (10 marks) 3. Without incurring additional computation, modify the polyphase upsampling filter to frequency shift the data by heterodyning with a 2 kHz carrier. That is the tones at 50, and 100 Hz will now be placed at 1900, 1950, 2050, and 2100 Hz. (6 marks) (Total: 20 marks)

Answered Same Day Dec 24, 2021

Solution

David answered on Dec 24 2021
128 Votes
TTS350838_1.pdf
�
�
�
�
�
�
�
��������        
�
��    ï¿½ï¿½ï¿½
    ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½    ï¿½ï¿½    ï¿½ï¿½ï¿½    
��    ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½    
���    ï¿½ï¿½ï¿½    
��    ï¿½ï¿½    ï¿½ï¿½ï¿½    
�
��    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½
�    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½    ï¿½
�     �������    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½     �������    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½
�    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    
����������     �
�     ����     �����     ��     �������    ï¿½ï¿½    
     !���     "��    ï¿½    #�����    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½     $%&     ������    
���
    ï¿½    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½    ï¿½    ï¿½ï¿½    
����    '
    ï¿½(    ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½)    ï¿½ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    *    
�    ï¿½(    ï¿½ï¿½    +��    ï¿½ï¿½ï¿½    %��������    ï¿½
�    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½,    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½
�    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½,    ï¿½ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½
�    
������     ��������     ��     ������     �
��     ��     �����     ���������������     -��     �����������     �
�    
���������     ���     ������������     ���
     �     ������     �����
���     ������������     �������    
.������    ï¿½
�    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½/�����    ï¿½ï¿½ï¿½    ï¿½
�    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    $%&    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    
���    ï¿½
�    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½    
0�������     1�23�(    ï¿½ï¿½ï¿½ï¿½        
    
Fs= 16000; % Sampling Frequency
Ts=1/Fs;
L=1000; % Signal Length
t=(0:(L-1))*Ts;
x=sin (2*1100*pi*t)+sin (2000*pi*t); % Signal
N=2^nextpow2(abs(L));
y=fft (x,N);
f = fs/2*linspace(0,1,N/2+1);
plot(f,abs(y(1:N/2+1)),'r');title ('PSD of X');
xlabel('Frequency in Hz'); ylabel ('Normalized Amplitude in
milivolts');
Fpass = 0.1; % Passband Frequency
Fstop = 150; % Stopband Frequency
Apass = 1; % Passband Ripple (dB)
Astop = 60; % Stopband Attenuation (dB)
h = fdesign.lowpass('fp,fst,ap,ast', Fpass, Fstop, Apass, Astop,
Fs);
Hd = design(h, 'kaiserwin');
fvtool (Hd);
yf=filter(Hd,x);
YF=fft (yf,N);
plot(f,2*abs(YF(1:N/2+1))); title ('PSD of Y');xlabel('Frequency
in Hz');
ylabel ('Normalized Amplitude in milivolts');...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here