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

1. Modify the evenodd function discussed in the text so that it accepts an arbitrary<br />

sequence and decomposes it into its conjugate-symmetric and conjugate-antisymmetric<br />

components by implementing (2.27).<br />

2. Decompose the following sequence:<br />

x(n) =10exp([−0.1+j0.2π]n), 0 ≤ n ≤ 10<br />

into its conjugate-symmetric and conjugate-antisymmetric components. Plot their real<br />

and imaginary parts to verify the decomposition. (Use the subplot function.)<br />

P2.8 The operation of signal dilation (or decimation or down-sampling) isdefined by<br />

y(n) =x(nM)<br />

in which the sequence x(n) isdown-sampled by an integer factor M. For example, if<br />

x(n) ={...,−2, 4, 3, −6, 5, −1, 8,...}<br />

↑<br />

then the down-sampled sequences by a factor 2 are given by<br />

y(n) ={...,−2, 3, 5, 8,...}<br />

↑<br />

1. Develop a MATLAB function dnsample that has the form<br />

function [y,m] = dnsample(x,n,M)<br />

% Downsample sequence x(n) by a factor M to obtain y(m)<br />

to implement the above operation. Use the indexing mechanism of MATLAB with<br />

careful attention to the origin of the time axis n =0.<br />

2. Generate x(n) =sin(0.125πn), − 50 ≤ n ≤ 50. Decimate x(n) byafactor of 4 to<br />

generate y(n). Plot both x(n) and y(n) using subplot and comment on the results.<br />

3. Repeat the above using x(n) =sin(0.5πn), − 50 ≤ n ≤ 50. Qualitatively discuss the<br />

effect of down-sampling on signals.<br />

P2.9 Using the conv_m function, determine the autocorrelation sequence r xx(l) and the<br />

crosscorrelation sequence r xy(l) for the following sequences.<br />

x(n) =(0.9) n , 0 ≤ n ≤ 20; y(n) =(0.8) −n , − 20 ≤ n ≤ 0<br />

Describe your observations of these results.<br />

P2.10 In a certain concert hall, echoes of the original audio signal x(n) are generated due to the<br />

reflections at the walls and ceiling. The audio signal experienced by the listener y(n) isa<br />

combination of x(n) and its echoes. Let<br />

y(n) =x(n)+αx(n − k)<br />

where k is the amount of delay in samples and α is its relative strength. We want to<br />

estimate the delay using the correlation analysis.<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!