Answers to self-assessment tests and problems

Chapter 1

Section 1.9

As this is a running average filter which averages the current and previous two input samples, then:

image

Applying this equation, and remembering that the two storage registers are initially reset, the corresponding input and output values will be as shown in Table S1.1. The first two output values of 0.67 and 1.67 are not strictly valid as the two zeros, initially stored in the two storage registers, are still feeding through the system.

Table S1.1

image

The input and output values are also shown in Fig. S1.1. Notice how the averaging tends to smooth out the variations of the input signal. This is a good demonstration that the running average filter is a type of lowpass filter.

image

Figure S1.1

Section 1.11

(a) From Fig. 1.11:

image

(b) Table S1.2 shows all outputs, and also the A, B and C values, corresponding to the eight input samples.

Table S1.2

image

Problems

1. 

(a) Not programmable.

(b) Unlikely that two ‘identical’ analogue processors will behave in an identical way.

(c) Affected by ageing and temperature changes.

(d) Not as versatile.

2. True.

3. 

(a) .

4. Recursive, feedback.

5. False (true for IIR filters – running average is an FIR filter).

6. False (only true for IIR filters).

7. 

(a) 40 000 bytes;

(b) 5 kHz (Nyquist frequency = half sampling frequency).

8. 3, 4.4, 6.9, 6.1, 3.9, 3.2.

9. 2.00, 2.60, 4.56, 3.18, −0.47, 0.19.

10. 1, 1, 1.2, 1.4, 1.64, 1.92.

    It looks suspiciously as though the output will continue to increase with time, i.e. that the system is unstable. (In fact, this particular system is unstable and needs redesigning.)

Chapter 2

Section 2.4

1. 

(a) x(t) = 2 cos (3 πt)

image

    To avoid aliasing, this signal must be sampled at a minimum of 3 Hz, and so 20 Hz is fine.

(b) As the sampling frequency is 20 Hz, the samples are the signal values at 0, 0.05, 0.1, 0.15, 0.2 and 0.25 s.

image

(c) x[n − 4] = 0, 0, 0, 0, 2, 1.78, 1.17, 0.31, −0.62, −1.42.

2. 

(a) x[n] + w[n] = 1, 0, 4, −3

(b) 3w[n − 2] = 3(0, 0, −1, −2, 1, −4) = 0, 0, −3, −6, 3, −12

image

(c) 0.5x[n − 1] = 0, 1, 1, 1.5, 0.5

image

3. 

(a) From Fig. 2.8, the sequence at A is −2(x[n − 1]) = 0, −4, −2, −6, 2.

(b) y[n] = x[n] − 2(x[n − 1]) = 2, −3, 1, −7, 2.

Section 2.8

1. 

(a) image

(b) image

(c) image

(d) image

2. 

(a) image

(b) image

(c) image

(d) image

Section 2.10

1. image

    Carrying out the polynomial division should give:

image

2. 

(a) image

    Therefore, the output sequence is 1, 3, 2, 6.

(b) image

    giving an output sequence of 2, 9, 8, −3.

3. 

(a) 

image

From the z-transform tables:

image

but y(t) = e-at

image

(b) 

image

This gives A = −1.5 and B = 2.5

image

Section 2.16

1. 

image

Dividing (1 − 0.8z−1) by (1 − 0.5z−1) you should get 1 − 0.3z−1 − 0.15z−2 … and so the first three terms of the output sequence are 1, −0.3 and −0.15.

2. From Fig. S2.1:

image

As the z-transform for a unit ramp is 0 + z−1 + 2z−2 + 3z−3 + …, then the z-transform of the system output is given by:

image

3. 

image

Figure S2.1

image (S2.1)

image (S2.2)

Equation (S2.2) – equation (S2.1):

image

i.e. this is the transfer function for a recursive filter.

4. 

image (S2.3)

image (S2.4)

From equations (S2.3) and (S2.4):

image

Problems

1. 1, 3, 0, −2.

2. T(z) = 1 + z−1 + 2z−2. Unit step response: 1, 2, 4, 4.

3. T(z) = (1 + 0.5z−1)/(1 − 0.5z−1) = 1 + z−1 + 0.5z−2 + 0.25z−3.

    Unit sample response: 1, 1, 0.5, 0.25.

4. Output sequence: 1, 0, 1, 0, −2. [T(z) = (1 − z−2)].

5. T(z) = 0.5(1 − 0.4z−1)/(l − z−2). (Hint: The input to the ×0.5 attenuator is 2Y(z).)

6. 0, 0.8, 0.96, 0.992

image

Chapter 3

Section 3.4

1. 

image

There is therefore a single zero at s = −2. There is a pole at s = 0 and also at s = −3 and −1 (roots of s2 + 4s + 3). The pole–zero diagram is shown in Fig. S3.1. The pole at A will correspond to a step of height k1, while the poles at B and C represent exponentially decaying d.c. signals of k2et and k3e−3t respectively, where k1, k2 and k3 are multipliers. (Although it is possible to find the k-values from the p–z diagram, this is not expected here.) Figure S3.2 shows the MATLAB plots for the signals corresponding to the three pole positions (k-values of 1 have been used for all three signals, as it is only general signal shapes that are required).

image

which gives a = 4/3, b = −1 and c = −1/3. Therefore, from the Laplace transform tables:

image

2. This transform has no zeros but has poles at s = ± j2 and so this represents a non-decaying sine wave of angular frequency 2. From the Laplace transform tables:

image

Figure S3.1

image

Figure S3.2

image

i.e. the transform first needs to be rearranged to 3 × 2/(s2 + 22). It can then be recognized as a standard transform.

Section 3.11

1. This p–z diagram represents an exponentially decaying d.c. signal – the signal samples falling to 0.8 of the previous sample – the pulse train being delayed by one sampling period. Carrying out the polynomial division, i.e. dividing z−1 by 1 − 0.8z−1, results in the series z−1 + 0.8z−2 + 0.64z−3 + … (N.B. This assumes no ‘pure’ gain in the system, i.e. that T(z) = k/(z − 0.8) where k = 1. It is impossible to know the true value of k from the p–z diagram alone.)

2. The Nyquist frequency (fN) = 60 Hz, i.e. 180° = 60 Hz.

image

3. z = esT

    Pole A:

image

Pole-pair B1 and B2:

image

This represents conjugate poles 0.61 from the origin, the pole vectors to the origin being inclined at angles of ±0.5 radians from the positive real axis.

    Pole C:

image

    Pole-pair D1 and D2:

image

i.e. the pole vectors have a magnitude of 1 and are inclined at ±0.5 radians (±28.6°) to the positive real axis.

    Pole E:

image

The z-plane p–z diagram is shown in Fig. S3.3.

image

Figure S3.3

Section 3.15

image

Therefore there are real s-plane zeros at s = −1 and −2 and complex conjugate poles at −1 ±j (roots of the denominator). Figure S3.4 shows the p–z diagram.

image

Figure S3.4

0 rad/s (Point A):

image

image

1 rad/s (Point B,Fig. S3.5):

image

Figure S3.5

image

A similar approach should show that the gain and phase angle at 2 rad/s are 5.66 (15 dB) and −8.2°.

For very large frequencies the distances from the frequency point to the two poles and the two zeros are almost identical and so the gain must be very close to 4. Further, as the angles made by the zero and pole vectors approach 90° then the phase angle must be zero. Figure S3.6 shows the Bode plot for the system.

image

Figure S3.6

Section 3.18

image

One zero at z = 0 and three poles at z = 0.8 and −0.5 ± j0.5.

The p–z diagram is shown in Fig. S3.7.

image

Figure S3.7

As the Nyquist frequency is 8 Hz, points A and B must represent signal frequencies of 0 and 4 Hz respectively.

(a) f = 0 Hz:

    By using

image

and

image

it should be fairly easy to show that the magnitude and phase angle of the frequency response at 0 Hz are 2 and 0° respectively.

    f = 4 Hz:

    From Fig. S3.7:

image

(b) f = 0 Hz:

image

    f = 4 Hz:

    Substituting z = j into image

image

Problems

1. 

(a) Zero at 0.1 and pole at 0.3.

(b) Gain at 0 Hz = 1.29, phase angle = 0.

    Gain at 250 Hz = 0.96, phase angle = −11° (or 349°).

(c) Gain at 375 Hz = 0.8, phase angle = −6.1° (353.9°).

2. 

(a) 

image

(b) The d.c. gains of the continuous and digital filters are approximately 0.67 and 7.36 respectively. It follows that the transfer function of the digital filter would have to be scaled by multiplying by 0.67/7.36.

3. 

(a) As the z-transform for the unit sample function is 1, then

image

i.e. no zeros but poles at 0.5 ± j0.5.

(b) The z-transform of a unit step is z/(z − 1). It follows that

image

i.e. p–z diagram as for (a) above, but an extra pole at +1 and a zero at the origin. Gain at 0 Hz = 2 and at fs/4 = 0.89.

4. Dividing z2 by z + 1 (or z by 1 + z−1) results in the z-transform of z − 1 + z−1z−2 + … for the unit sample response. The initial z indicates that the output sequence begins one sampling period before the input arrives! Impossible!

5. p = 0.79 (p2 = 0.62).

    The gain at 0 Hz is approximately 1.2.

    The filter is a bandstop filter, with maximum gains of 1.2 at 0 and 100 Hz (fN) and minimum gain of 0.5 (−6 dB) at 50 Hz.

Chapter 4

Section 4.5

image

There must therefore be two poles at z = ± ja.Figure S4.1 shows the two poles and also points A, B and C corresponding to signal frequencies of 100, 90 and 110 Hz respectively. (N.B. The positions of points B and C on the unit circle are not drawn to scale.)

image

Figure S4.1

Using

image

At 100 Hz (Point A):

image (S4.1)

At 90 Hz (or 110 Hz):

The gain = −3 dB

image

(‘(1 + a) as B is very close to A)

To find P1B:

image

As the angle ∠AOB is relatively small (≈9°), arc AB ≈ line AB. Also, triangle P1AB approximates to a right-angled triangle, with ∠P1AB ≈ 90°.

image (S4.2)

Dividing equation (S4.2) by (S4.1), and carrying out a few lines of algebra, you should eventually find that a ≈ 0.86. Substituting this value back into equation (S4.1) or (S4.2) should give k ≈ 0.26.

image

Section 4.9

image

First check whether pre-warping is necessary:

image

This is approximately a 5% difference compared to ωc, and so pre-warping is necessary.

image

Replacing all s/ωc terms with image:

image

Applying the bilinear transform:

image

After a few lines of algebra:

image

Section 4.11

(a) 

image

From the s/z transform tables:

image

Scaling the z-domain transfer function so that the d.c. gains of the two filters become the same:

image

(b) 

image

Applying the method of partial fractions:

image

Using the ‘cover-up’ rule (or any other method):

image

From the s/z transform tables:

image

After a few lines of algebra, you should find that

image

and, after equalizing the d.c. gains of the two filters:

image

Section 4.13

(a) 

image

This particular continuous filter has no zeros and a double pole at s = −2.

From z = esT, the equivalent pole positions in the z-plane must be given by z = e−0.2 = 0.82.

image

(A double zero has been added at z = −1 to balance up the number of poles and zeros.)

    After equalizing the d.c. gains of the filters, the final transfer function is given by:

image

(b) 

image

i.e. a zero at s = −2 and two poles at s = −1 and −3. These transform to a zero in the z-plane at z = 0.819 and poles at 0.905 and 0.741.

image

or

image

after scaling.

Section 4.18

image

image

After some tidying up:

image

Problems

1. 

image

2. 

(a) 

image

(b) 

image

3. 

image

4. 

(a) 

image

(b) 

image

5. 

(a) 

image

(b) 

image

Chapter 5

Section 5.9

1. 

(a) fc = 3kHz, fN = 6 kHz

    From Section 5.6:

image (S5.1)

Substituting n = −5 to +5 into equation (S5.1) gives coefficients of:

image

image

(b) The Hanning window function is given by:

image (S5.2)

Substituting n = 0 to 10 into equation (S5.2) gives Flanning coefficients of:

image

Multiplying the filter coefficients of part (a) by the corresponding Hanning coefficient gives a modified filter transfer function of:

image

or, more sensibly:

image

2. The filter coefficients are the same as those for the lowpass filter designed in Section 5.6, before applying the Hamming window function, apart from (a) the signs being changed and (b) the central coefficient being 1 − (fc/fN) = 0.6 (see Section 5.8).

Section 5.13

The required magnitude response and the sampled frequencies are shown in Fig. S5.1. From Section 5.12, equation (5.8b), the filter coefficients, x[n], are given by:

image

Figure S5.1

image (S5.3)

where N is the number of frequency samples taken (nine here), α = (N − 1)/2, i.e. 4, and |Xk| is the magnitude of the kth frequency sample. In this example |X0|, |X1| and |X2| = 0, while |X3| = 0.5 and |X4| = 1. Substituting into equation (S5.3)

image

image

Similarly, x[2] = 0.114677, x[3] = −0.264376 and x[4] = 0.333333

image

Problems

1. 

(a) 

image

(b) 

image

2. 

image

3. Magnitude and phase angle of the three frequency components of 0, 500 Hz and 1500 Hz are 3∠0°, 1.732∠90° and 1.732∠−90° respectively.

4. 

image

5. 

image

6. The FFT values are: 2, 1 − j3, 0, 1 + j3, i.e. the magnitudes of the four frequency components, 0, fs/4, fs/2 and 3fs/4 are 2, √10, 0 and √10 respectively, while the corresponding phase angles are 0, tan−1(−3), 0, tan−1 3.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.252.201