0% found this document useful (0 votes)
669 views5 pages

Experiment #4: Lti Systems - Convolution and Difference Equations

This document summarizes an experiment on LTI systems involving convolution, difference equations, and determining the unit-step and other responses of systems. It involves: 1) Determining the unit-step responses of two systems based on their impulse responses and plotting the responses. 2) Determining the response of a three-input system to a given input and plotting the response. 3) Solving a given difference equation using direct substitution and filtering to obtain the output, then using the impulse response to solve by convolution. Comparing and plotting the results.
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)
669 views5 pages

Experiment #4: Lti Systems - Convolution and Difference Equations

This document summarizes an experiment on LTI systems involving convolution, difference equations, and determining the unit-step and other responses of systems. It involves: 1) Determining the unit-step responses of two systems based on their impulse responses and plotting the responses. 2) Determining the response of a three-input system to a given input and plotting the response. 3) Solving a given difference equation using direct substitution and filtering to obtain the output, then using the impulse response to solve by convolution. Comparing and plotting the results.
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/ 5

FERRER, Patrick Gerard E.

(2014069342)
4ECE-E

EXPERIMENT #4: LTI SYSTEMS – CONVOLUTION AND DIFFERENCE EQUATIONS

1. Determine the unit-step response of the system described by their impulse responses.
Plot the response using the stem command.

a. h(n) = 0.8n[u(n) – u(n – 25)]

MATLAB code:

>> n = 0:24;
>> un25 = [ zeros(1,25), ones(1,(numel(n)-25)) ];
>> un = [ ones(1,25) ];
>> z = un - un25;
>> hn = ( 0.8.^n );
>> h = conv(z, hn);
>> stem(n,h(1,1:25))

<Insert figure with label here. DELETE THIS LINE.>

b. h(n) = 0.8ncos(0.2πn) [u(n) – u(n – 25)]

MATLAB code:

4-1
FERRER, Patrick Gerard E. (2014069342)
4ECE-E

>> n = 0:24;
>> un25 = [ zeros( 1, 25 ), ones(1,(numel(n)-25)) ];
>> un = [ ones( 1,25) ];
>> z = un - un25;
>> hn = ( 0.8.^n ).*( cos(0.2*pi.*n) );
>> h = conv( z, hn );
>> stem( n, h(1:25) )

<Insert figure with label here. DELETE THIS LINE.>

2. Determine the response of the system shown below to the input

x(n) = 10cos(0.02πn)[ u(n) – u(n – 25)]

Plot the response using the stem command.

h1 (n)=0. 8 n [ u(n )−u(n−25)]


h2 (n)=(−0 .5 )n [u(n )−u( n−25 )]
h3 (n)=0 .3 n cos(0 . 8 πn)[ u(n )−u(n−25)]

4-2
FERRER, Patrick Gerard E. (2014069342)
4ECE-E

H1

y(n) + H3 y(n)

H2

MATLAB code:

>> n=0:24;
>> xn=10.*cos(0.02*pi.*n);
>> h1n=0.8.^n;
>> h2n=-1*0.5.^n;
>> h3n=(0.3.^n).*cos(0.8*pi.*n);
>> yn=conv((conv(xn,h1n)+conv(xn,h2n)),h3n);
>> stem(n,yn(1,1:25))

<Insert figure with label here. DELETE THIS LINE.>

4-3
FERRER, Patrick Gerard E. (2014069342)
4ECE-E

3. Given the difference equation shown below:

y(n) = 0.7632y(n – 1) – 2.0173y(n – 2) + 0.9964y(n – 3) – 1.4046y(n – 4) +


0.3508y(n – 5) – 0.3144y(n – 6) + 0.5610x(n) – 0.5265x(n – 1) + 1.8072x(n – 2) –
1.0574x(n – 3)
+ 1.8072x(n – 4) – 0.5265x(n – 5) +0.5610x(n – 6)

Zero initial conditions, x(n) = 5u(n).

a. Compute the values of the first ten (10) samples of y(n) using direct substitution
MATLAB code:

b. Compute the values of the first ten (10) samples of y(n) using the filter function.
MATLAB code:

c. Are the results in 3.b and 3.c in agreement?


Comment:

d. Obtain the first ten (10) samples of h(n) by repeating 3.a using x(n) = δ(n)
MATLAB code:

e. Use h(n) to solve again y(n) for x(n) = 5u(n) by convolving h(n) to x(n).
MATLAB code:

4-4
FERRER, Patrick Gerard E. (2014069342)
4ECE-E

f. Plot the responses from 3.a, 3.b, and 3.e. Use subplot to display the plots on a
single figure window. Comment on the samples computed (plots).
MATLAB code:

<Insert figure with label here. DELETE THIS LINE.>

Comment:

– END OF EXPERIMENT –

4-5

You might also like