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.

Interpolation by a Factor I 487<br />

Solution The upsampled signal is v(m) ={1, 0, 2, 0, 3, 0, 4, 0}. Ifwenow delay x(n) by<br />

↑<br />

, 1, 2, 3, 4}. The corresponding upsampled signal<br />

one sample, we get x(n−1) = {0<br />

↑<br />

is v 1(m) ={0<br />

↑<br />

, 0, 1, 0, 2, 0, 3, 0, 4, 0} = v(m − 2) and not v(m − 1). □<br />

MATLAB Implementation MATLAB provides the function [v] =<br />

upsample(x,I) that upsamples input array x into output v by inserting<br />

(I-1) zeros between input samples. An optional third parameter,<br />

“phase,” specifies the sample offset, which must be an integer between<br />

0 and (I-1). For example,<br />

>> x = [1,2,3,4]; v = upsample(x,3)<br />

v =<br />

1 0 0 2 0 0 3 0 0 4 0 0<br />

upsamples by a factor of 2 starting with the first sample. However,<br />

>> v = upsample(x,3,1)<br />

v =<br />

0 1 0 0 2 0 0 3 0 0 4 0<br />

>> v = upsample(x,3,2)<br />

v =<br />

0 0 1 0 0 2 0 0 3 0 0 4<br />

produces two different signals by upsampling, starting with the second<br />

and the third sample (i.e., offset by 1), respectively. Note that the lengths<br />

of the upsampled signals are I times the length of the original signal.<br />

The frequency-domain representation of the upsampled signal<br />

y(m) The sequence v(m) has a z-transform<br />

∞∑<br />

∞∑<br />

V (z) = v(m)z −m = v(m)z −mI = X(z I ) (9.27)<br />

m=−∞<br />

m=−∞<br />

The corresponding spectrum of v(m) isobtained by evaluating (9.27) on<br />

the unit circle. Thus<br />

V (ω y )=X(ω y I) (9.28)<br />

where ω y denotes the frequency variable relative to the new sampling rate<br />

F y (i.e., ω y =2πF/F y ). Now the relationship between sampling rates<br />

is F y = IF x , and hence the frequency variables ω x and ω y are related<br />

according to the formula<br />

ω y = ω x<br />

(9.29)<br />

I<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!