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.

52 Chapter 2 DISCRETE-TIME SIGNALS AND SYSTEMS<br />

subject to the initial conditions:<br />

{y(n); −N ≤ n ≤−1} and {x(n); −M ≤ n ≤−1}<br />

A solution to (2.24) can be obtained in the form<br />

y(n) =y ZI (n)+y ZS (n)<br />

where y ZI (n) iscalled the zero-input solution, which is a solution due<br />

to the initial conditions alone (assuming they exist), while the zero-state<br />

solution, y ZS (n), is a solution due to input x(n) alone (or assuming that<br />

the initial conditions are zero). In MATLAB another form of the function<br />

filter can be used to solve for the difference equation, given its initial<br />

conditions. We will illustrate the use of this form in Chapter 4.<br />

2.4.3 DIGITAL FILTERS<br />

Filter is a generic name that means a linear time-invariant system designed<br />

for a specific job of frequency selection or frequency discrimination. Hence<br />

discrete-time LTI systems are also called digital filters. There are two<br />

types ofdigital filters.<br />

FIR filter If the unit impulse response of an LTI system is of finite<br />

duration, then the system is called a finite-duration impulse response (or<br />

FIR) filter. Hence for an FIR filter h(n) =0fornn 2 .<br />

The following part of the difference equation (2.21) describes a causal FIR<br />

filter:<br />

M∑<br />

y(n) = b m x(n − m) (2.25)<br />

m=0<br />

Furthermore, h(0) = b 0 , h(1) = b 1 , ...,h(M) =b M , while all other h(n)’s<br />

are 0. FIR filters are also called nonrecursive or moving average (MA)<br />

filters. In MATLAB FIR filters are represented either as impulse response<br />

values {h(n)} or as difference equation coefficients {b m } and {a 0 =1}.<br />

Therefore to implement FIR filters, we can use either the conv(x,h)<br />

function (and its modification that we discussed) or the filter(b,1,x)<br />

function. There is a difference in the outputs of these two implementations<br />

that should be noted. The output sequence from the conv(x,h) function<br />

has a longer length than both the x(n) and h(n) sequences. On the other<br />

hand, the output sequence from the filter(b,1,x) function has exactly<br />

the same length as the input x(n) sequence. In practice (and especially<br />

for processing signals) the use of the filter function is encouraged.<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!