Professional Documents
Culture Documents
Technology
Faculty of Engineering and Industrial
Sciences
EEE40003
DIGITAL SIGNAL
&
IMAGE
PROCESSING
Lab 3: Discrete LTI Systems
Group: 07 (Tuesday 12.30 pm)
Student Name
Student Number
WARNAKULASURIYA
PEIRIS
1729608
Signature
h( r ) x ( n r )
1)
y ( n)
(1)
5
5
5
5
5
(3)
end
Input
0.5
maverage function
>> x=[1 zeros(1,31)];
>> stem(x)
10
15
25
30
35
25
30
35
Output
0.2
>> z=maverage(x);
>> stem(z)
20
0.15
0.1
0.05
0
0
5
10
15
20
From the figure we can
clearly prove the
statement we had put in part 1 i.e. for all the n=0, 1, 2, 3, 4 the
magnitude is 0.2 and for n<0 and n>4 the response is zero.
Input
system:
>> x=ones(1,32);
>> z=maverage(x);
0.5
10
15
20
25
30
35
20
25
30
35
Output
0.5
10
15
>> z=maverage(x);
>> plot([1:length(x)], z, 'r', [1:length(x)], x, 'b');
300
Blue line
represents the
original signal
which is the
Input Blood
Velocity trace,
while the red line
represents the
output signal.
250
200
150
100
50
100
200
300
400
500
300
250
200
150
100
50
100
200
300
400
500
600
The output signal of the system is much smoother. Also it shows less noise compared to
the input blood velocity trace (input signal).
The system acts as a moving window average the takes the average of 5 signals when it
moves along the signal resulting in the noise being reduced.
600
0.2
0.18
0.16
0.14
0.12
0.1
0.08
0.06
0.04
0.02
0
10
15
20
25
30
35
40
8) Unit Step
Response
0.9
>>
b=ones(1,32);
>>
stem(conv(a,b));
0.7
0.8
0.6
0.5
0.4
0.3
0.2
0.1
0
10
15
20
25
30
35
40
>> bv;
>> plot(conv(a,x));
250
200
150
100
50
100
200
300
400
500
600
Impulse Response
0.2
0.18
>> a = [1 zeros(1,31)];
>> b = [0.2 0.2 0.2 0.2 0.2 zeros(1,27)];
>> dimpulse(b,a,32);
0.16
0.14
0.12
Amplitude
0.1
0.08
0.06
0.04
0.02
0
10
15
20
25
Time (sec)
10)
30
Impulse Response
0.2
0.18
0.16
0.14
Amplitude
0.12
0.1
0.08
0.06
0.04
0.02
0
10
15
20
25
30
Time (sec)
as equation (3).
y ( n)
x (n) x ( n 1) x (n 2) x (n 3) x (n 4)
5
5
5
5
5
1
y (n) y (n 1) ( x(n) x(n 5))
5
The recursive system depends on the present input, past input and previous
output, while, the non-recursive system depends only on present input. In the
equation 3 and 6 above, we can see that the magnitude in each case is the same
thus giving the same output.
In other words, the coefficient array of equation 6 is the same as the equation 3, 0.2 from 0<n<6
and 0 elsewhere.
2)
>> a = [1, -0.82];
>> b = [0.18, 0];
>> dimpulse(b,a,32);
Impulse Response
0.18
0.16
0.14
Am plitude
0.12
0.1
0.08
0.06
0.04
0.02
0
10
15
20
25
20
25
30
Time (sec)
3)
1
0.9
0.8
Am plitude
0.7
0.6
0.5
0.4
0.3
0.2
0.1
10
15
30
Time (sec)
4)
>>
y=filter(b,a,x);
>> plot(y);
300
250
200
150
100
50
100
200
300
400
500
600
Question 2: Show that the equation 6 does follow from the block diagram:
1-
x(n)(1-)
x(n)
x(n)(1-) + y(n-1)
y(n-1)
y(n-1)
Question 3: What analogue system do the results in step 2 and 3 suggest this discrete
system approximates?
By analysing the graphs obtained in step 2 and step 3 we can see that,
the amplitude in graph 2 is decreasing with the time period and reaching
EEE40003 DSP |Lab Report Discrete LTI Systems
10
zero at some point. While in the graph 3 we can see that the amplitude is
increasing with the time and reaching a constant value. The system
represents the digital filter which is clearly non-casual and IIR.
11