Question: 4 . 5 5 repeat Example 4 . 7 , using zero padding and the MATLAB commands fft and fftshift to sample and plot Y

4.55 repeat Example 4.7, using zero padding and the MATLAB commands fft and fftshift to sample and plot Y(en) at 512 points on -\pi \Omega =\pi for each case.
4.55 Repeat Example 4.7, using zero padding and the
MATLAB commands fft and fftshift to
sample and plot Y(ei) at 512 points on
- for each case. Example 4.7 Application: Windowing Data It is common in data-processing ap-
plications to have access only to a portion of a data record. In this example, we use the
multiplication property to analyze the effect of truncating a signal on the DTFT. Consid-
er the signal
x[n]=cos(716n)+cos(916n).
Evaluate the effect of computing the DTFT, using only the 2M+1 values x[n],|n|M.
Solution: The DTFT of x[n] is obtained from the FS coefficients of x[n] and Eq.(4.8) as
x(ei)=(+916)+(+716)+(-716)+(-916),
-
which consists of impulses at +-716 and +-916. Now define a signal y[n]=x[n]w[n],
where
w[n]={1,|n|M0,|n|>M
Multiplication of x[n] by w[n] is termed windowing, since it simulates viewing x[n] through
a window. The window w[n] selects the 2M+1 values of x[n] centered on n=0. We
compare the DTFTs of y[n]=x[n]w[n] and x[n] to establish the effect of windowing.
The discrete-time multiplication property Eq.(4.13) implies that
Y(ej)=12{W(ei(+916))+W(ei(+716))+W(ej(-716))+W(ei(-916))},
where the DTFT of the window w[n] is given by
W(ej)=sin(2M+12)sin(2).
We see that windowing introduces replicas of W(ej) centered at the frequencies 716 and
916, instead of the impulses that are present in x(ej). We may view this state of affairs
as a smearing or broadening of the original impulses: The energy in Y(ein) is now smeared
over a band centered on the frequencies of the cosines. The extent of the smearing depends
on the width of the mainlobe of W(ej), which is given by 42M+1.(See Figure 3.30.)
Figure 4.15(a)-(c) depicts Y(ejn) for several decreasing values of M. If M is large
enough so that the width of the mainlobe of W(ei) is small relative to the separation be-
tween the frequencies 716 and 916, then Y(ej) is a fairly good approximation to
x(ei). This case is depicted in Fig. 4.15(a), using M=80. However, as M decreases and
the mainlobe width becomes about the same as the separation between frequencies 716
and 916, the peaks associated with each shifted version of W(ejI) begin to overlap and
merge into a single peak. This merging is illustrated in Fig. 4.15(b) and (c) by using the val-
ues M=12 and M=8, respectively.
 4.55 repeat Example 4.7, using zero padding and the MATLAB commands

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!