EEE40003 Digital Signal and Image Processing

SWINBURNE UNIVERSITY OF TECHNOLOGY

EEE40003
Signal and
Processing

Digital
Image

EEE40003 Digital Signal and Image
Processing
Yew Wee Wong 10012429

LAB 3: Discrete LTI Systems

Yew Wee Wong 100012429

Page 0

........................................................................... 11 Aim    Familiarize with MATLAB Examinnation of a simple FIR system Examination of a simple IIR system Yew Wee Wong 100012429 Page 1 ................................................................................... 2 Part C: A Simple IIR System......................................................................................................................................................... 1 Result and Analysis.......................EEE40003 Digital Signal and Image Processing Table of Contents Aim..........................................................................9 Conclusion................. 2 Part B: A Simple FIR System..........................................................

h(4)  5 5 5 5 5 h( r )  0.3.4 5 . r  0 Since the system shows characteristic such that and system is causal.EEE40003 Digital Signal and Image Processing Result and Analysis Part B: A Simple FIR System 1) By comparing both equations. r  0. the theoretical unit pulse response of the system is determined as below: 1 1 1 1 1 h(0)  . h( 2)  . the . h(3)  . h(1)  . 2) M-file for maverage (x) Yew Wee Wong 100012429 Page 2 1 h(r )  .2.1.

r  0.3.4 5 Yew Wee Wong 100012429 and 0 for everywhere else. Page 3 .1.2.EEE40003 Digital Signal and Image Processing 3) Code Result Comment: The result of the unit pulse response complements the theoretical response in Part B (1) where 1 h(r )  .

EEE40003 Digital Signal and Image Processing 4) Code Result Comment: From the result obtained.averaging length (N = 5). we can see that the first 5 elements of the output signal are distorted because the number of input sequence is less than the window. Yew Wee Wong 100012429 Page 4 . the reconstruction of the output signal is similar to the input similar. When the input sequences are ≥ 5.

EEE40003 Digital Signal and Image Processing 5) Code Result Comment: As expected. Yew Wee Wong 100012429 Page 5 . The result above also shows that the noise of the original signal is greatly reduced by using window – averaging without altering the shape of the original signal. the first 5 elements of the output signal are distorted due to the limitation of window – averaging.

Yew Wee Wong 100012429 Page 6 . However. the noise of the original BV waveform is greatly reduced which is similar to the result obtained in step 5).EEE40003 Digital Signal and Image Processing 6) and 7) Code Result Comment: The result by using convolution to calculate the unit pulse response of the system is the simular to the result obtained in step 3) above. However. there are a slight difference in both techniques where the result by using convolution extend up to the 36th elements while the result obtained in step 3) above only reaches up to the 32th elements. the result obtained by using convolution has a slight distortion at the last few elements. 8) Code Result Comment: By using convolution function.

 [5] y ( n)  1 1 1 1 1 x (n)  x(n  1)  x(n  2)  x( n  3)  x (n  4)  [3] 5 5 5 5 5 By comparing [3] with [5].EEE40003 Digital Signal and Image Processing 9) a0 y (n)  a1 y (n  1)  a2 y (n  2)  . we get: a0  1. b2 . Yew Wee Wong 100012429 Page 7 .. an  0 n0 for 1 b0 . The amplitude of the unit impulse response is 0. b4  .. b3 .. b1 .  bo x(n)  b1 x(n  1)  b2 x (n  2)  .2 at 0 ≤ t ≤ 4. bn  0 n  otherwise 5 for Code Result Comment: The result obtained is as expected as it is the same as the result obtained in step 3)..

we get: a0  1.  [5] 1 y (n)  y ( n  1)  [ x (n)  x(n  5)]  [6] 5 By comparing equation [6] with equation [5]. Eq [6] can be obtained: 1 y (n)  y (n  1)  [ x (n)  x(n  5)]  [6] 5 Since equation [3] can be modified to acquire equation [6]. thus.18.. Yew Wee Wong 100012429 Page 8 .EEE40003 Digital Signal and Image Processing 10) a0 y (n)  a1 y (n  1)  a2 y (n  2)  . an  0 n  otherwise for 1 b0  0. It is surprising as both equations have different equation coefficients.. 1 y (n)  [( x(n)  x(n  1)  x( n  2)  x (n  3)  x(n  4)]  [1] 5 1 y (n  1)  [( x( n  1)  x(n  2)  x(n  3)  x (n  4)  x (n  5)]  [2] 5 By subtracting [2] from [1]. both system shows the same characteristic. Question 1: From Equation (3). b5  .. bn  0 n  otherwise 5 for Code Result Comment: Since the result of the unit impulse response for equation (6) is same as the result obtained for equation (3).. the system given for equation (3) and (6) are the same.  bo x(n)  b1 x (n  1)  . a1  1.. both equations produce the same output.  b5 x(n  5)  .. thus.

EEE40003 Digital Signal and Image Processing Yew Wee Wong 100012429 Page 9 .

82. Therefore.82) x(n) Comparing the formula with: a0 y (n)  a1 y (n  1)  a2 y (n  2)  . y (n)  0. bn  0 for n  otherwise n  otherwise 2) Code Result Code Result 3) Yew Wee Wong 100012429 Page 10 ..82 y (n  1)  (1  0.EEE40003 Digital Signal and Image Processing Part C: A Simple IIR System 1) y (n)  y (n  1)  (1   ) x( n)   0..18..82 By substituting . an  0 for b0  0.  bo x( n)  b1 x (n  1)  b2 x(n  2)  . a0  1.. a1  0.

EEE40003 Digital Signal and Image Processing 4) Code Original BV Wave Filtered BV Wave Question 2: y (n)  (1   ) x(n)  y (n  1) Yew Wee Wong 100012429 Page 11 .

Question 3: This discrete system shows similarity with a RC circuit. student successfully indulges in more familiarization with Matlab in Part A. Yew Wee Wong 100012429 Page 12 . student successfully examines the characteristic of a simple FIR system and IIR system and provides relevant comment of their thoughts about their examination.EEE40003 Digital Signal and Image Processing (1   ) x(n) y ( n  1) y (n  1) Comment: The diagram above proves that the equation in step (1) follows from the block diagram given. Conclusion In a nutshell. The characteristic of the system shown in step (2) demonstrates the discharging phase of the capacitor’s voltage while step (3) shows the charging phase of the capacitor’s voltage. In Part B and C of the lab.