DSP (TASK 4)
Topic: Convolution
PROBLEM NO: 1
Let input signal x be [1,3,-2,4,-1] and the system h be [-2,3,4,-3,6].find the output of the system y
using the conv command.
>> X=[1,3,-2,4,-1];H=[-2,3,4,-3,6];
>> Y=conv(X,H);
>> subplot(3,1,1);
>> stem(X)
>> subplot(3,1,2);
>> stem(H)
>> subplot(3,1,3);
>> stem(Y)
Problem # 2
Now suppose we add another system j = [3.-1.2.4.1] in series with the above system now find the
overall response and output y of the above system using the conv command.
>> J=[3,-1,2,4,1];
>> K=conv(J,Y);
>> subplot(3,1,1)
>> stem(Y)
>> subplot(3,1,2)
>> stem(J)
>> subplot(3,1,3)
>> stem(K)
Problem # 3
Again suppose now j is attached in parallel to h. find the impulse response y of the system.
>> Y=conv(X,H)+conv(J,H);
>> subplot(4,1,1)
>> stem(X)
>> subplot(4,1,2)
>> stem(J)
>> subplot(4,1,3)
>> stem(H)
>> subplot(4,1,4)
>> stem(Y)
Problem # 4
Now suppose the two systems h and j are in series and a third system k = [2,3,4,5,6] has also
attached with them in parallel. Find the impulse response y[n] of the overall system .
Up till now we have supposed that all the signals starting point is same say 0.Suppose the system
k has starting point 3 now get the overall response of the system.