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 97<br />

% check<br />

>> error = max(abs(xa - exp(-1000*abs(t))))<br />

error = 0.1679<br />

The maximum error in this case is 0.1679, which is significant and cannot be<br />

attributed to the nonideal interpolation or nonband-limitedness of x a(t). From<br />

the bottom plot in Figure 3.19 observe that the reconstructed signal again<br />

differs from the actual one in many places over the interpolated regions. □<br />

From these examples it is clear that for practical purposes the spline<br />

interpolation provides the best results.<br />

3.5 PROBLEMS<br />

P3.1 Using the matrix-vector multiplication approach discussed in this chapter, write a<br />

MATLAB function to compute the DTFT of a finite-duration sequence. The format of<br />

the function should be<br />

function [X] = dtft(x,n,w)<br />

% Computes Discrete-time Fourier Transform<br />

% [X] = dtft(x,n,w)<br />

% X = DTFT values computed at w frequencies<br />

% x = finite duration sequence over n<br />

% n = sample position vector<br />

% w = frequency location vector<br />

Use this function to compute the DTFT X(e jω )ofthe following finite-duration sequences<br />

over −π ≤ ω ≤ π. Plot DTFT magnitude and angle graphs in one figure window.<br />

1. x(n) =(0.6) |n| [u(n + 10) − u(n − 11)]. Comment on the angle plot.<br />

2. x(n) =n(0.9) n [u(n) − u(n − 21)].<br />

3. x(n) =[cos(0.5πn)+j sin(0.5πn)][u(n) − u(n − 51)]. Comment on the magnitude plot.<br />

4. x(n) ={4, 3, 2, 1, 1, 2, 3, 4}. Comment on the angle plot.<br />

↑<br />

5. x(n) ={4, 3, 2, 1, −1, −2, −3, −4}. Comment on the angle plot.<br />

↑<br />

P3.2 Let x 1(n) ={1, 2, 2, 1}. Anew sequence x 2(n) isformed using<br />

↑<br />

{ x1(n), 0 ≤ n ≤ 3;<br />

x 2(n) = x 1(n − 4), 4 ≤ n ≤ 7;<br />

0, Otherwise.<br />

1. Express X 2(e jω )interms of X 1(e jω ) without explicitly computing X 1(e jω ).<br />

2. Verify your result using MATLAB by computing and plotting magnitudes of the<br />

respective DTFTs.<br />

(3.44)<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!