02.10.2019 Views

UploadFile_6417

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Problems 53<br />

IIR filter If the impulse response of an LTI system is of infinite duration,<br />

then the system is called an infinite-duration impulse response (or<br />

IIR) filter. The following part of the difference equation (2.21):<br />

N∑<br />

a k y(n − k) =x(n) (2.26)<br />

k=0<br />

describes a recursive filter in which the output y(n) isrecursively computed<br />

from its previously computed values and is called an autoregressive<br />

(AR) filter. The impulse response of such filter is of infinite duration and<br />

hence it represents an IIR filter. The general equation (2.21) also describes<br />

an IIR filter. It has two parts: an AR part and an MA part. Such an IIR<br />

filter is called an autoregressive moving average, oranARMA, filter. In<br />

MATLAB, IIR filters are described by the difference equation coefficients<br />

{b m } and {a k } and are implemented by the filter(b,a,x) function.<br />

2.5 PROBLEMS<br />

P2.1 Generate the following sequences using the basic MATLAB signal functions and the basic<br />

MATLAB signal operations discussed in this chapter. Plot signal samples using the stem<br />

function.<br />

1. x 1(n) =3δ(n +2)+2δ(n) − δ(n − 3) + 5δ(n − 7), −5 ≤ n ≤ 15.<br />

2. x 2(n) = ∑ 5<br />

k=−5 e−|k| δ(n − 2k), −10 ≤ n ≤ 10.<br />

3. x 3(n) =10u(n) − 5u(n − 5) − 10u(n − 10)+5u(n − 15).<br />

4. x 4(n) =e 0.1n [u(n + 20) − u(n − 10)].<br />

5. x 5(n) =5[cos(0.49πn)+cos(0.51πn)], −200 ≤ n ≤ 200. Comment on the waveform<br />

shape.<br />

6. x 6(n) =2sin(0.01πn) cos(0.5πn), −200 ≤ n ≤ 200. Comment on the waveform shape.<br />

7. x 7(n) =e −0.05n sin(0.1πn + π/3), 0 ≤ n ≤ 100. Comment on the waveform shape.<br />

8. x 8(n) =e 0.01n sin(0.1πn), 0 ≤ n ≤ 100. Comment on the waveform shape.<br />

P2.2 Generate the following random sequences and obtain their histogram using the hist<br />

function with 100 bins. Use the bar function to plot each histogram.<br />

1. x 1(n) isarandom sequence whose samples are independent and uniformly distributed<br />

over [0, 2] interval. Generate 100,000 samples.<br />

2. x 2(n) isaGaussian random sequence whose samples are independent with mean 10 and<br />

variance 10. Generate 10,000 samples.<br />

3. x 3(n) =x 1(n)+x 1(n − 1) where x 1(n) isthe random sequence given in part 1 above.<br />

Comment on the shape of this histogram and explain the shape.<br />

4. x 4(n) = ∑ 4<br />

y k=1 k(n) where each random sequence y k (n) isindependent of others with<br />

samples uniformly distributed over [−0.5, 0.5]. Comment on the shape of this histogram.<br />

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).<br />

Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!