Chapter 6 solutions
See figures of output signals, next page
6.3, continued
-0.04 -0.02 0 0.02 0.04
-0.5
0
0.5
1
1.5
a
t
-0.04 -0.02 0 0.02 0.04
-0.5
0
0.5
1
1.5
b
t
-0.04 -0.02 0 0.02 0.04
-0.5
0
0.5
1
1.5
c
t
-0.04 -0.02 0 0.02 0.04
-0.5
0
0.5
1
1.5
d
t
-0.04 -0.02 0 0.02 0.04
-0.5
0
0.5
1
1.5
e
t
-0.04 -0.02 0 0.02 0.04
-0.5
0
0.5
1
1.5
f
t
Transfer Fcn
1
0.0016 s+1
Scope1
Scope
Pulse
Generator
Part (a)
Part (b)
Part (c)
Part (d)
Part (e)
Part (f)
6.9
Continued
6.9(a), continued
(b)
(c)
6.11
(a) (Note that you dont need the Analog Butterworth LP Filter block; just use a Transfer Function block
with the coefficients derived from the but t er ( N, Wn, s ) command.)
We should select a cutoff frequency for the low-pass filter so that the oscillations in the signal are eliminated
as much as possible. This doesnt specify a precise criterion, however. Here is the signal before and after filtering
with a 2
nd
order Butterworth low-pass filter with
c
=100 :
The next output plot uses
c
=20, giving a smoother result, although it takes longer to get there:
(b)
Here is the signal after filtering with a 4
th
order Butterworth filter with
c
=20:
6.11, (c)
[ b, a] = but t er ( 2, 20*pi , s ) ;
f r eqs( b, a) ;
10
1
10
2
10
3
-200
-150
-100
-50
0
Frequency (rad/s)
P
h
a
s
e
(
d
e
g
r
e
e
s
)
10
1
10
2
10
3
10
-3
10
-2
10
-1
10
0
Frequency (rad/s)
M
a
g
n
i
t
u
d
e
Frequency Response for 2nd order Butterworth,
c
=20
[ b, a] = but t er ( 4, 20*pi , s ) ;
f r eqs( b, a) ;
10
1
10
2
10
3
-200
-100
0
100
200
Frequency (rad/s)
P
h
a
s
e
(
d
e
g
r
e
e
s
)
10
1
10
2
10
3
10
-5
10
0
Frequency (rad/s)
M
a
g
n
i
t
u
d
e
Frequency Response for 4th order Butterworth,
c
= 20
6.11, (d) For the 2
nd
order filter:
[ b, a] =but t er ( 2, 20*pi , s ) ;
h = f r eqs( b, a, [ 377: 378] ) ;
abs( h( 1) ) ;
angl e( h( 1) ) ;
Gives: |H(377)| = 0.0278, (377) = -2.9.
For the 4
th
order filter: |H(377)| =7.715e-4 , (377) =0.44
6.13
(a) Filter A is a high-pass filter since the DC component of the signal was removed and the high-
frequency components remain
(b) Filter B is a low-pass filter since the signal was smoothed
6.14
6.15 (a) Frequency spectra:
Continued
6.15(a), continued
Continued
6.15, continued
(c) (a)
6.16
6.17
6.18
6.19
6.20
6.21
6.22
(b)
6.25
6.27
6.28
6.29
6.31
6.32
6.33
6.34