You are on page 1of 3

484 Chapter 6 Solutions

Problem 6.41 The program P6.41.m on the website generates a triangle wave and
adds noise to it. It also generates a resonator filter that enhances three of the triangle
wave harmonics. The user must input the real part a of the poles. Determine the value
of a that maximizes the selectivity of the resonator, while keeping the duration of the
impulse response to within ≈ 1 s. Plot:
(a) The noisy triangle wave and its spectrum
(b) The impulse and frequency responses of the filter
(c) The filtered signal.

Solution: Using the real part of the poles a = −5 gives

TRIANGLE+NOISE
4

−2

−4 t (s)
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1

SPECTRUM OF TRIANGLE+NOISE
0.5

0.4

0.3

0.2

0.1

0 f (Hz)
0 50 100 150 200 250 300 350 400 450 500

The triangle-plus-noise signal and its spectrum


Chapter 6 Solutions 485

1.4

1.2

0.8

0.6

0.4

0.2

0 f (Hz)
0 50 100 150 200 250 300 350 400 450 500

IMPULSE RESPONSE OF RESONATOR FILTER


30

20
h(t)
10

0 t (s)

−10

−20

−30
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

The resonator filter frequency and impulse responses


486 Chapter 6 Solutions

TRIANGLE+NOISE
4

−2

−4 t (s)
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1

FILTERED TRIANGLE+NOISE
1

0.5

−0.5

−1 t (s)
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1

The original and filtered signals

You might also like