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

h(n)<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

−0.2<br />

−0.4<br />

−0.6<br />

Impulse Response<br />

−0.8<br />

0 50<br />

n<br />

Magnitude Response<br />

1<br />

|H|<br />

7.6 PROBLEMS<br />

0<br />

0 0.05 0.95 1<br />

frequency in π units<br />

FIGURE 7.40 Plots of the Hilbert transformer in Example 7.28<br />

P7.1 The absolute and relative (dB) specifications for a lowpass filter are related by (7.1) and<br />

(7.2). In this problem we will develop a simple MATLAB function to convert one set of<br />

specifications into another.<br />

1. Write a MATLAB function to convert absolute specifications δ 1 and δ 2 into the relative<br />

specifications R p and A s in dB. The format of the function should be<br />

function [Rp,As] = delta2db(delta1,delta2)<br />

% Converts absolute specs delta1 and delta2 into dB specs Rp and As<br />

% [Rp,As] = delta2db(delta1,delta2)<br />

Verify your function using the specifications given in Example 7.2.<br />

2. Write a MATLAB function to convert relative (dB) specifications R p and A s into the<br />

absolute specifications δ 1 and δ 2. The format of the function should be<br />

function [delta1,delta2] = db2delta(Rp,As)<br />

% Converts dB specs Rp and As into absolute specs delta1 and delta2<br />

% [delta1,delta2] = db2delta(Rp,As)<br />

Verify your function using the specifications given in Example 7.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!