SDA12 Systems
SDA12 Systems
2024
Systems
Izhar Bar-Gad
Room: 408 Phone: 7141 Email: [email protected]
Introduction
Fourier Transform
Sampling Theory
Systems
Filters
Spectral Analysis
System definition
x(t) y(t)
H
input output
Examples:
d( )
( )2 ( )+a a*( )
dt
1
3
Common systems
Linear Systems
x1 y1 x2 y2
L L
The system is linear iff:
for every x1,x2,a,b ax1+bx2 ay1+by2
ax1+bx2 ay1+by2
L
Example of a linear system : y[n] = 2x[n]
Example of a nonlinear system: y[n] = (x[n])2
Checking Linearity
6
Time Invariant (TI) systems
Checking TI
2 2
signal sin( t ) sin(10* t)
1000 1000
2
1 . 5
0 . 5
- 0 . 5
- 1
- 1 . 5
- 2
0 5 0 0 1 0 0 0 1 5 0 0 2 0 0 0 2 5 0 0 3 0 0 0 3 5 0 0 4 0 0 0 4 5 0 0 5 0 0 0
8 0
6 0
4 0
2 0
- 2 0
- 4 0
- 6 0
- 8 0
- 1 0 0
0 5 0 0 1 0 0 0 1 5 0 0 2 0 0 0 2 5 0 0 3 0 0 0 3 5 0 0 4 0 0 0 4 5 0 0 5 0 0 0
10
Fourier Transform
2 100
80
1.5
60
1
40
0.5
20
0 0
-20
-0.5
-40
Convolution
-1
-60
-1.5
-80
-2 -100
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
4
3.5
3.5
3
3
2.5
2.5
2
2
1.5
1.5
1
1
0.5 0.5
0 0
0 2 4 6 8 10 12 14 16 18 20 0 2 4 6 8 10 12 14 16 18 20
11
Fourier Fourier
Fourier
4
12
Shift theorem
DFTk(x[n-Δ]) =
13
Convolution
DFTk(x*h) =
= X[k]H[k]
14
IMPORTANT
• All real systems are in the time domain!!!!
• No frequency domain systems exist.
5 • We just utilize frequency domain for our convenience
15
Impulse response
16
Transfer function
17
FIR IIR
Finite Impulse Response Infinite Impulse Response
h[n]
M . h[ n] n M
0
p p
H H
1 q
6
18
LTI Systems –
General Representation
19
FIR Systems
20
FIR implementation
7
21
FIR example
n x(n) y(n)
Average of x(n) over last
5 samples
1 10 2
2 22 6.4
3 24 11.2
4 42 19.6
5 37 27
6 77 40.4
7 89 53.8
8 22 53.4
9 63 57.6
10 9 52
22
FIR example II
Observations:
1) There is a delay between input and output sequences
2) The output is more smooth as compared to the input
3) If the input goes to zero then the output follows suit after some time
23
IIR systems
8
24
IIR implementation
d = delay
d d
d d
d d
d d
25
26
-6 0 0
-5 0 0
-4 0 0
-3 0 0
-2 0 0
-1 0 0
0 1 1
1 0 -1
2 0 1
3 0 -1
4 0 1
5 0 -1
6 0 1
7 0 -1
28
No feedback (FIR) ?
29
FIR averaging
n x[n] 1 1 1 1 1
y[n] = x[n] + x(n-1)+ x(n-2)+ x(n-3)+ x(n-4)
5 5 5 5 5
-6 0 0
-5 0 0
-4 0 0
-3 0 0
-2 0 0
-1 0 0
0 1 1/5
1 0 1/5
2 0 1/5
3 0 1/5
4 0 1/5
5 0 0
6 0 0
10
30
IIR averaging
1 1
n x(n) y(n) = x(n) + y(n-1)- x(n-5)
5 5
-6 0 0
-5 0 0
-4 0 0
-3 0 0
-2 0 0
-1 0 0
0 1 1/5
1 0 1/5
2 0 1/5
3 0 1/5
4 0 1/5
5 0 0
6 0 0
31
System’s Response
32
Decibel (dB)
10
−3 dB = ½ power difference of ±3 dB is
roughly double/half power (actually 1.995).
11
33
Bode Plot (fully logarithmic)
Bode Diagram
8
H(ω)
7
Magnitude (dB)
6
4
180
178
Phase (deg)
176
174
172
170
-2 -1 0 1
10 10 10 10
Frequency (rad/sec)
34
Frequency normalization
2 f
fs
35
Semi-Log plot
H(ω) 50
Magnitude (dB)
-50
-100
-150
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency ( rad/sample)
5000
Phase (degrees)
-5000
-10000
-15000
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
12 matlab: freqz
Normalized Frequency ( rad/sample)
36