0% found this document useful (0 votes)
49 views4 pages

Faizan Ashraf (DSP Lab 4)

The document discusses using convolution to analyze different configurations of systems. It contains 4 problems: 1) Finding the output of a system using convolution of the input and impulse response. 2) Adding another system in series and finding the combined output. 3) Attaching a second system in parallel and finding the combined impulse response. 4) Connecting two systems in series and a third in parallel, accounting for a time offset in one system.

Uploaded by

Faizan Ashraf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views4 pages

Faizan Ashraf (DSP Lab 4)

The document discusses using convolution to analyze different configurations of systems. It contains 4 problems: 1) Finding the output of a system using convolution of the input and impulse response. 2) Adding another system in series and finding the combined output. 3) Attaching a second system in parallel and finding the combined impulse response. 4) Connecting two systems in series and a third in parallel, accounting for a time offset in one system.

Uploaded by

Faizan Ashraf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

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.

You might also like