Professional Documents
Culture Documents
Lecture – 6 Objectives
xn H xnH
Frequency
Analysis of To learn and understand
the frequency response, its
H
n
h n e j n
Let X() = F [x(n)] and Y() = F [y(n)], then using the convolution
property, we have
Y H X
An LTI system can be represented in the frequency domain by
X H Y H X
The output y(n) is then computed from the spectrum of the signal
Y() using the inverse discrete Fourier transform.
Solution:
Frequency response of an LTI system is given by H hn e jn
H 0.9 e
1
0 0.9e j
n jn n
Therefore
0 1 0.9e j
H
1 1
Hence 1 0.9 cos 2 0.9 sin 2 1.81 1.8 cos
0.9 sin
and H arctan
1 0.9 cos
IUB Dr. Abdur Razzak 6
Example-2 ECR 305_L6
1
0.5e 0 0.5e
j n j n 1
0 1 0.5e j
H
1 2
At = , j
1 0.5e 3
y n x n H
2
Ae jn
3
IUB Dr. Abdur Razzak 7
Example-3 ECR 305_L6
H
Solution: 1
1 0.5e j
H 0
1
For the first term, = 0, j0
2
1 0.5e
For the second term, = /2,
H / 2
1 2 2 j 3 / 20
270 e
1 j 0.5 5 5
3
y n xn H 4
6
sin n
5 2 20
IUB Dr. Abdur Razzak 8
Example-4 ECR 305_L6
n
1
Fourier transform X xne jn
1
e j
1 1 / 4e
j
0 4
N
j l
M
or H e j n
l
1 a e e j n
bm e j m
l 1 m 0
b e m
jm
or H m 0
N
1 al e jl
l 1
m
b e jm
b0e j0
H
1
m 0
1
1 a1e j1 1 0.8e j
1 al e jl
l 1
H
1 1
1 0.8 cos 2 0.8 sin 2 1.64 1.6 cos
0.8 sin
H arctan
1 0.8 cos
IUB Dr. Abdur Razzak 11
Example-6 ECR 305_L6
Determine the magnitude & phase response for the three point
moving average system y(n) = (1/3)[x(n-1) + x(n) + x(n+1)].
1
Solution:
b e m
jm
b1e j1 b0 e j0 b1e j1
H m 1
1
1 0
1 al e jl
l 1
1 j
e 1 e
3
j 1
3
1 2 cos
H 1 2 cos
1
Magnitude response: 3
3
Solution: H e 1 e
1 j j
and hn
1
2
H e j n
d
1 1 1 j j
h 1 j
H e d e e d
1
2 2 3 3
h0
1
H e
j 0
d
1
1
d
1
2 2 3 3
h1
1
j
H e d
1
1 j j
e e d
1
2 2 3 3
1 1 1
hn , ,
3 3 3
IUB Dr. Abdur Razzak 13
Example-8 ECR 305_L6
m
b e jm
b0 e j0
H
b
m 0
j 1
1
1 a1e 1 ae j
1 al e jl
l 1
Stability condition: a 1
Impulse response: hn ba nu n
IUB Dr. Abdur Razzak 14
Example-9 ECR 305_L6
e j
H j
1
e 0.5 1 0.5e j
hn 0.5 u n
n
a yn l b xn m
l 0
l
m 0
m
N M
yn al yn l bm xn m with a0 = 1
l 1 m 0
b e m
jm
or H lp m 0
N
1 al e jl
l 1
bme j m
bme jm jm
e m
b 1 e jm m
m 0
N
m 0
N
m 0
N
1 al e j l
1 al e e jl jl
1 al 1 e jl
l
l 1 l 1 l 1
l 1 m 0
H lp
0.2
m 0
N
1 0.5e j
1 al e jl
l 1
bm 1 e jm
m
H hp
0.2
m 0
N
1 0.5e j
1 al 1 e jl
l
l 1
1
y n H ( ) x(n) Ae j on
1 ae j
Ae jon
1 ae j
Steady-state response
Problems : 5.1, 5.3~5.7, 5.11, 5.12, 5.16, 5.18, 5.19, 5.22, 5.24
MATLAB
Examples
Solution:
Frequency response of an LTI system is given by H e hne
j jn
e j
Therefore H e j 0.9 e 0.9e
n jn j n 1
j
j
1 0.9e e 0.9
H e j
1
1
Hence 1 0.9 cos 2 0.9 sin 2 1.81 1.8 cos
0.9 sin
and
H e j
arctan
1 0.9 cos
% Definition
w = [0:500]*pi/500;
% Calculation
H = exp(j*w)./(exp(j*w)-0.9*ones(1,501));
magH = abs(H); angH = angle(H);
% Plotting
Subplot(2,1,1); plot(w/pi, magH); grid
title('Magnitude response');
ylabel('Magnitude');
Subplot(2,1,2); plot(w/pi, angH/pi); grid
title('Phase response');
xlabel('Frequency in pi units');
ylabel('Phase in pi Radians');
IUB Dr. Abdur Razzak 25
MATLAB example 3.13 (contd..) ECR305_L6
Solution:
Rewrite the above equation
yn 1.76 yn 1 1.1829 yn 2 0.278 yn 3
0.0181xn 0.0543 xn 1 0.0543 xn 2 0.0181xn 3
gives: b [0.0181, 0.0543, 0.0543, 0.0181]
a [1.000, 1.7600, 1.1829, 0.2780]
% Definition
b = [0.0181, 0.0543, 0.0543, 0.0181]; % filter coefficient array b
a = [1.000, -1.7600, 1.1829, -0.2781]; % filter coefficient array a
m = 0:length(b)-1; l = 0:length(a)-1; % index array m and l
K = 500; k = 0:K; w = k*pi/K; % [0, pi] axis divided into 501 points
% Calculation
num = b*exp(-j*m'*w); % numerator calculations
den = a*exp(-j*l'*w); % denominator calculations
H = num./den; % frequency response calculations
magH = abs(H); % magnitude response
angH = angle(H); % phase response
% Plotting
Subplot(2,1,1); plot(w/pi, magH); grid
title('Magnitude response','fontsize', 20); ylabel('Magnitude','fontsize', 20);
Subplot(2,1,2); plot(w/pi, angH/pi); grid
title('Phase response','fontsize', 20); xlabel('Frequency in pi units','fontsize', 20);
ylabel('Phase in pi Radians','fontsize', 20);
IUB Dr. Abdur Razzak 28
MATLAB example 3.16 (contd..) ECR305_L6
Sampling &
Reconstruction