02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Problems 101<br />

P3.16 Foralinear, shift-invariant system described by the difference equation<br />

M∑<br />

N∑<br />

y(n) = b mx (n − m) − a l y (n − l)<br />

m=0<br />

l=1<br />

the frequency-response function is given by<br />

H(e jω )=<br />

∑ M<br />

m=0 bme−jωm<br />

1+ ∑ N<br />

l=1 a le −jωl<br />

Write a MATLAB function freqresp to implement this relation. The format of this<br />

function should be<br />

function [H] = freqresp(b,a,w)<br />

% Frequency response function from difference equation<br />

% [H] = freqresp(b,a,w)<br />

% H = frequency response array evaluated at w frequencies<br />

% b = numerator coefficient array<br />

% a = denominator coefficient array (a(1)=1)<br />

% w = frequency location array<br />

P3.17 Determine H(e jω ), and plot its magnitude and phase for each of the following systems:<br />

∑<br />

1. y(n) = 1 4<br />

x(n − m)<br />

5 m=0<br />

2. y(n) =x(n) − x(n − 2)+0.95y(n − 1) − 0.9025y(n − 2)<br />

3. y(n) =x(n) − x(n − 1) + x(n − 2)+0.95y(n − 1) − 0.9025y(n − 2)<br />

4. y(n) =x(n) − 1.7678x(n − 1) + 1.5625x(n − 2)+1.1314y(n − 1) − 0.64y(n − 2)<br />

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

l=1 (0.5)l y (n − l)<br />

P3.18 A linear, shift-invariant system is described by the difference equation<br />

y(n) =<br />

3∑<br />

x (n − 2m) −<br />

m=0<br />

3∑<br />

(0.81) l y (n − 2l)<br />

Determine the steady-state response of the system to the following inputs:<br />

1. x(n) =5+10(−1) n<br />

2. x(n) =1+cos(0.5πn + π/2)<br />

3. x(n) =2sin(πn/4) + 3 cos (3πn/4)<br />

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

(k +1)cos (πkn/4)<br />

k=0<br />

5. x(n) =cos (πn)<br />

In each case, generate x(n), 0 ≤ n ≤ 200, and process it through the filter function to<br />

obtain y(n). Compare your y(n) with the steady-state responses in each case.<br />

P3.19 An analog signal x a (t) =sin (1000πt) issampled using the following sampling intervals.<br />

In each case, plot the spectrum of the resulting discrete-time signal.<br />

l=1<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!