1. Determine the convolution of x(n) O v(n) manually (using pencil and paper). U
ID: 2267488 • Letter: 1
Question
1. Determine the convolution of x(n) O v(n) manually (using pencil and paper). Use the MATLAB function conv to compute the convolution of over the range 0 Sn s 20 for the following functions and then plot the results a, x[n] = [n] + [n-2]; v[n] b, x[n] = 3"u[n]; u[n] = u[n] 2 . 3"u[n] 15 Marks 2. Find the Discrete Time Fourier transform of the following signals, and using MATLAB plot the amplitude and phase spectra (lx(o) and x(a)) a. (0.5) cos(4n) u[n] b. n(0.5)" cos(4n)u[n] 15 Marks 3. In this Problem you will perform "spectral analysis" using the DFT on an audio signal that is the first couple of measures of Beethoven's 5th symphony (the audio signal is actually just the string section) Download the file beethoven5.wav from MOODLE and put it in a directory accessible via MATLAB (or, in MATLAB, change the working directory to the one with this ile in). You will load this file ARL1Explanation / Answer
close all
clear all
x=input('Enter x: ')
h=input('Enter h: ')
m=length(x);
n=length(h);
X=[x,zeros(1,n)];
H=[h,zeros(1,m)];
for i=1:n+m-1
Y(i)=0;
for j=1:m
if(i-j+1>0)
Y(i)=Y(i)+X(j)*H(i-j+1);
else
end
end
end
Y
stem(Y);
ylabel('Y[n]');
xlabel('----->n');
title('Convolution of Two Signals without conv function');
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.