FFT 4
FFT 4
FFT 4
Page 1
keep doing this, such that the zeros go on forever on each side and effectively the period
becomes infinitely long. The signal now has just the information part with zeros
extending to infinity on each side. We declare, this is now a periodic signal with N = .
We have turned an aperiodic signal into a periodic signal by this assumption. And indeed
this is perfectly valid. We can now apply the FS analysis to this extended signal.
(a)
1.5
1
0.5
0
10
(b)
12
14
16
18
20
1.5
1
0.5
0
10
15
20
25
30
10
20
30
(c)
40
50
60
10
20
30
40
50
60
(c)
1.5
1
0.5
0
1.5
1
0.5
0
e jn0t
(1.1)
Page 2
1
T
T /2
jn
x (t )e
0t
dt
(1.2)
T /2
Here
is the fundamental frequency of the signal and n the index of the harmonic such
that n
is the nth harmonic. The period of the signal is called T for the continuous case
as K 0 for the discrete case. In the discrete case, the sample number k, is also called the bin
number. The frequency spac between the bin for the continuous case is
and
2
K0
for the
discrete case.
What happens to the coefficients of a periodic series as we stretch the period by adding
more and more zeros in between the information pieces?
The frequency resolution becomes smaller and smaller as period increases. As we
increase T, the fundamental frequency which is equal to 0 2 / T , gets smaller, hence
the space between the harmonics also becomes smaller. The consequence of T going to
, is that 0 approaches zero and the summation in Eq. (1.1) effectively becomes an
integral, resolution becoming a continuous variable
.
In the limit, we can replace the discrete harmonics which are an integer multiple of the
fundamental frequency with a continuous frequency, since they are now so close
together that they are essentially continuous.
Take a look at signal in Fig. 4.2. In the first figure we show a pulse train and its CTFS in
(a), (b) and (c) as we push the signal period out. Note that as the pulses move further
apart, the harmonics begin to move closer together, i.e. there is more of them in each
lobe.
The last lone pulse is the aperiodic signal and it is not hard to imagine looking at the way
these harmonics are getting closer together that its FSC will become continuous.
0.3
0.2
0.1
0
-0.1
-15
-10
-5
10
15
Page 3
0.08
0.15
0.06
0.1
0.04
0.05
0.02
0
-40
0
-20
20
-0.02
40
-50
50
Figure 4.2 - Stretching the period, makes the fundamental frequency smaller, which
makes the spectral lines move closer together.
Key idea: Increasing the period of a signal allows us to create an aperiodic version of
the signal. The increasing period brings harmonics closer together, so that the
spectrum of an aperiodic signal becomes continuous.
Cn
1
T
T
0
x (t ) e
dt
(1.3)
Where n is the nth harmonic or is equal to n times the fundamental frequency, n0 , and
T is the period of the fundamental frequency. In order to make T go to infinity, we make
a couple of changes in the formula. First we substitute this into Eq. (1.3)
1
T
(1.4)
Page 4
Cn
lim
x (t )e
dt
(1.5)
T /2
This expression is not very helpful so far, because as T goes to infinity, goes to zero,
so the whole expression goes to zero. But now we substitute this equation into the
expression of the Fourier series itself. The expression foe the Fourier series is given by:
x (t )
Cn e
(1.6)
Now substitute into this equation, the value of Cn form Eq. (1.5) modified for an extended
period case, we get
T /2
x (t )
lim
x (t )e
dt e
(1.7)
T /2
Notice what happened here, we substituted into Eq. (1.6), the modified value of the
extended period coefficients from Eq. (1.6). Now as T goes to infinity, range of
integration in the middle integral changes again from - to . Also because the
harmonics move so close to each other that we call them by just , a continuous variable,
instead of n . The summation on the outside also becomes an integration because we are
now multiplying the coefficients (the middle part) with , kind of like computing an
infinitesimal area. Now we rearrange this combination of the two equations as
x (t )
1
2
x (t )e
dt e
(1.8)
Because the middle part is now a function of the continuous frequency, we give it a
special name, calling it the Fourier transform. Notice that the formula outside of this
term is that of the Fourier series.
Page 5
X ( )
x(t ) e
jt
dt
(1.9)
This is the formula for the coefficients of a non-periodic signal. The time-domain signal
is obtained by substituting X ( ) back into Eq. (1.8) as
1
x(t )
2
X ( ) e
jt
(1.10)
x (t )e
j t
dt
(1.11)
The formula for the time-domain signal, Eq. (1.10) is called the Inverse Fourier
Transform.
In frequency form the two formulas are written as
Forward Fourier transform
X (f )
j 2 ft
(1.12)
X (f )e j 2 ftdf
(1.13)
x (t )e
In these formulas as compared to the Fourier series formula of Eq. (1.3), we no longer
have the discrete harmonic index n to denote the nth harmonic because the frequency is
now continuous.
Page 6
Discrete
(Digital)
signal
Aperiodic
Fourier
Series
Periodic
Continuous-Time
Fourier Transform
CTFT
Aperiodic
Discerte Fourier
Series
Discrete-Time
Fourier Transform
And Z-Transfrom
DTFT
Cn
X( )
1
T
x (t ) e
dt
FSC
x (t )e
(1.14)
j t
dt
FT
When we compare FSC with the FT formulas, we see that they are nearly the same
except that the term 1/T in the front is missing from the latter. Where did it go and does it
have any significance? We started development of FT by assuming that T goes to
infinity, and then we equated 1/T to f and again mapped it to a continuous variable
by turning it into d . The d was then associated with the time-domain formula or the
inverse transform (notice, it is not included in the center part of Eq. (1.8), which became
the Fourier transform.). So it moved to the inverse transform in form of a 2 factor. The
other difference is that the frequency is continuous for the FT.
Notice the difference between the time-domain signals as given by FS and FT.
Page 7
x (t )
Cn e
FS
x (t )
(1.15)
1
2
j t
X ( )e d
FT
In FS. to determine the quantity of a particular harmonic, we multiplied the signal by that
harmonic, integrated the product over one period and divided the result by T. This gave
us the amplitude of that harmonic. (See Chapter 1). In fact we do that for all harmonics,
each divided by T. But here in the case of the Fourier transform, ostensibly we are doing
the same thing but we do not divide by period T. So what happens here is that we are not
determining the signals true amplitude. We are computing a measure of the content but
it is not the actual amplitude. And since we are missing the same exact term form all
coefficients, the period, we say that, the Fourier transform determines only relative
amplitudes. But often that is good enough. All we are really interested in is the relative
levels of powers in the signal. The true power of the signal in most cases where we use
these analytical tools is not important. Fourier Spectrum gives us the relative distribution
of power among the various harmonic frequencies in the signal. We often normalize the
result, putting the maximum at 0 dB. So the relative levels are consistent and useful.
Example 4-1
What is the FT of a single impulse function located at origin?
We write the CTFT expression Eq. (1.9) and substitute the delta function for the analysis
signal.
X( )
x (t )e
j t
j t
dt
(t )e
e
j(
0)t
dt
dt
Page 8
X( )
(w )e
j t
(w ) e
dt
j 0t
dt
In the second step, multipliction by the delta function means to use the value of the
function at the origin, and at that point, the value of the complex exonential is 1.0. The
integral of the delta function is 1.0 which is the value of the CTFT of a impulse function
at the origin. Hence the coefficient is a constant value and we get a flat line for the
spectrum.
The other way to think about this is that a delta function is a summation of an infinite
number of frequencies, so we see in its decomposition a spectrum that encompass the
whole of the frequency space to infinity.
Time, k
1
...
...
Frequency,
Time, k
The CTFT calculation can be separated in two parts, one for each of these impulses.
Page 9
X( )
e
(t
e
1
cos
2
cos
)e
j t
dt
(t
)e
j t
dt
j sin
1
cos
2
j sin
Well, that was kind of obvious. Did we not see in Chapter 2, that two equidistant pulses
are the coefficients of a cosine wave. Now can you guess what will happen if we add one
more impulse in time domain? As more of these are added, the addition of each new
impulse in time-domain makes the overall response a sinc function. We will see this case
later.
Example 4-2
Find the CTFT of a square pulse of amplitude 1v, with a period of , located at zero.
These are often called either square or rectangular pulses, both names mean the same
thing.
/2
/2
(a)
(b)
Page 10
(c )
Figure 4.6 Spectrum along a Frequency line
A square pulse has a sinc shaped spectrum. (a) time-domain shape, (b) Spectrum
for
.1 sec. (c) Spectrum for
.2 sec.
%Example 4-2
clf
tau = .2;
w = -250: .01: 250;
xom = tau*sinc(w*tau/(2*pi));
plot(w/(2*pi), xom)
We write the CTFT as given by Eq. (1.9). The function has a value of 1.0 for the duration
of the pulse.
X ( )
x(t ) e
jt
dt
/2
1 e
jt
dt
/2
e jt
/2
/2
X ( ) sinc
(1.16)
Page 11
For first case, the first zero crossing occurs 10 Hz. This is the inverse of the pulse time
0.1. For the second case, when the pulse is .2 seconds wide, the zero crossing occurs at 5
Hz. The spectrum is aperiodic and has infinite harmonics. It is the generalization of the
two pulse case in Example 4-1. What is the significance of these zero crossings? Note
that the spectrum of the square pulse is given by a sinc function. The sinc function is zero
for every integer value of its argument, so we get zeros at these certain frequency points.
If the pulse were to become infinitely wide, the FT would become an impulse function. If
it were infinitely narrow as in Example 4-1, the frequency spectrum would be flat. A
constant signal in time domain has a delta form in the frequency domain. This bidirectional relationship is often written as:
1
( )
CTFT
( )
(1.17)
CTFT
Example 4-3
Now assume that instead of the square pulse shown in Example 4-2, we are given a
frequency response that looks like a square pulse. The spectrum is flat for a certain band,
from W to W Hz. Notice, that in the first example, we defined the half width of the
pulse as / 2 but here we define the half bandwidth by W and not by W/2. The reason is
that in time domain, when a pulse is moved, its period is still . But bandwidth is
designated as a positive quantity. There is no such thing as a negative bandwidth. In this
case, the bandwidth of this signal (because it is centered at 0) is said to be W Hz and not
2W Hz. However if this signal were moved to a higher frequency center such that the
whole signal was in the positive frequency range, it would be said to have a bandwidth of
2W Hz. This crazy definition gives rise to the concepts of lowpass and bandpass
bandwidths.
What time-domain signal produces this frequency response? We compute the time
domain signal by the inverse Fourier transform.
x(t )
1
2
X ( ) e
jt
1 e
jt
1 e jt
2 j
Page 12
x(t )
W
sinc t
Well this also gives us a sinc function. So it looks as if a sinc function in time domain
gives a square frequency response. These are shown in Figure 4.7 for two cases of
bandwidths. These look like strange shapes for a time domain signal because they are not
limited to a certain time period. But because they are well-behaved, which means they
cross zeros at predicable points, we can and do use these as signal shapes to transmit
signals. Although theoretically wonderful, the sinc function cannot be used in real
systems because it is infinitely long. An alternate raised cosine shape is the most
commonly used symbol shape.
-W
(a)
2
1.5
1
0.5
0
-0.5
-4
-3
-2
-1
0
Time
(b)
4
3
2
1
0
-1
-4
-3
-2
-1
0
Time
Page 13
(c )
Figure 4.7 Time domain signal corresponding to the rectangular frequency. To
obtain a rectangular frequency spectrum, a sinc pulse shape is required in timedomain. A narrow band signal is slower than a wideband signal in its zero
crossings. (a) W = 2 Hz, (b) W = 4 Hz
The frequency spectrum shown in Fig. 4.7(a) is a very desirable form. We want the
frequency response to be tightly constrained. The way to get this type of spectrum is to
have a time domain signal that is a sinc function. This is the dual of the first case, where a
square pulse produces a sinc frequency response.
For W = 1 Hz, we get the first zero crossing at = 0.5 seconds ( 2W 1 / and for the
second case W = 2 Hz, the first zero crossing occurs at 0.25 seconds. This tells us that a
wideband signal requires a faster signal than one that is narrow band. These two cases
are complementary and very useful.
Example 4-4
Here is an another pair of very important CTFTs.
We have a single impulse located at 1 in frequency domain. In Example 4-1, we saw
what we get when the impulse is located at zero frequency. Here it is located at a nonzero frequency. What signal gives this FT?
We will take the inverse FT, denoted by this pretty symbol 1 . We characterize the
single impulse as a delta function, ( 1 ) .
x(t ) 1 ( 1 )
1
( )e
1
jt
1 j1t
e
2
1 j1t
e
2
This gives us the complex exponential in time domain. Well, this was kind of obvious
too. In Chapter two we looked at the FSC of a complex exponential. Because it is a
complex signal, it has non-symmetrical frequency response which consists of just one
impulse located at the exponential frequency. Fourier transform gives the same result.
We can write the result by taking the
Page 14
2
2
(w
(t
1)
CTFT
T1 )
CTFT
j 1t
Frequency to Time
(1.18)
2
j
T1
Time to Frequency
Example 4-5
What is the FT of a cosine wave?
We are doing FT, so we make cosine wave a non-periodic signal by limiting it to one
period.
x(t ) 1 cos 0t
1
2
2 e
0t
e j0t e jt d
e j ( 0 )t
1
d
2
2
e j ( 0 )t
d
2
1
2 ( 0 )
e j ( 0 )t d
2 0
Substituting this transform for the exponentials, we get
1
2
e j ( 0 )t
1
d
2
2
e j ( 0 )t
d
2
( 0 ) ( 0 )
The only difference we see between the FT of cosine wave and FSC we computed in
Chapter 2 seems to be the scaling. In the case of FSC, we got two delta functions at
and
. So we seem to be off
0 of amplitude . The amplitude of the FT computed is
by 2 when comparing the FSC of a signal with its FT. We explain the reason for this
later in this chapter.
Page 15
Can we also use the FT for a periodic signal? That would sure simplify things. We can
then go ahead and forget about Fourier series. But will we get the same answer as with
the Fourier series?
Lets take a periodic signal x(t) with fundamental frequency of 0 2 / T0 and write its
FS representation.
x(t )
e j n0 t
(1.19)
Cn
1
x(t ) e jn0t dt
T0 T0
(1.20)
Lets take the CTFT of both sides of Eq. (1.19) using the symbol to indicate a FT, we
get
X ( ) x(t ) Cn e jn0t
(1.21)
n
We can move the coefficients out because they are not a function of frequency. They are
just numbers.
X ( ) Cn e jn0t
n
(1.22)
X ( ) 2 Ck ( n0 )
k
(1.23)
What does this equation say? It says that the CTFT of a periodic signal is a sampled
version of the Fourier series coefficient of the periodic case. The coefficients from the
Fourier series of the same periodic series are multiplied by a train of impulses. This
results in again a discrete spectrum with the area of each impulse at the n 0 harmonic
frequency equal to the Fourier series coefficient of that frequency times 2 .
So now we have the Fourier Transform of a periodic signal as a discrete form of the
Fourier series coefficients. Okay, this is admittedly strange. The FT of a non-periodic
signal is continuous but the FT of a periodic signal is discrete? Yes. That is how it is. The
Page 16
delta function in (1.23) combs/sifts the coefficients and then repeats them with
fundamental frequency 0 .
CTFT of an aperiodic signal
CTFT of a periodic signal
Remember, we said that the CTFS does not exactly measure the true quantity of each
harmonic and in Eq. (1.23) we see the proof. The CTFT values are actually 2 times
greater and this explains the results of Example 4-5.
X ( ) 2 Ck ( n0 )
k
Example 4-6
What is the FT of a periodic impulse train with period T0 .
We already computed the FSC of an impulse. It is a constant. The FT of an impulse train
can be obtained from the relationship derived between the FSC and FT, Eq. (1.23).
X ( ) 2 Ck ( k0 )
k
2
( k )
The FSC of a single delta function is 1, a flat line. The result above samples (also called
sifting because it is kind of like passing it through a sieve with a lot of holes in it.) that
flat line in frequency domain, resulting in an impulse train, with each impulse repeating
at the fundamental frequency of the signal, F0 1 / T0 .
Page 17
dk
x[n]
1
T0
F0
Example 4-7
Find the Fourier transform of a periodic square pulse train.
-3T/2
-5T/2
-T/2
T/2
3T/2
10
5
0
-5
-60
-40
-20
20
40
60
Figure 4.9 A square pulse train and its discrete-time Fourier coefficients
The FSC of a square pulse train is given by (See Chapter 2)
Ck
k
sinc
T
T
X ( ) 2 Ck ( k0 )
k
The result is essentially the sampled version of the Fourier series coefficients scaled by
2 (see last example, Chapter 2) which are of course themselves discrete. So here we
Page 18
multiply a set of discrete numbers by an impulse train to obtain a sampled version of the
coefficients. These are shown in Fig. 4.9
x[k ] e
X ()
jnk
(1.24)
Here n is the index of the harmonics and k the index of time. (Note that many books use
the reverse notation, with n for time and k for harmonic index. So please make note that
your homework/book may have different notation.) Recall that for the continuous case
we refer to the fundamental frequency as 0 T2 , and for the discrete case as 0 K2 .
0
The terms
and
are the continuous vrsion of the analog and the discrete frequencies.
The inverse discrete-time Fourier transform, also called the analysis equation is given by
x[k ]
1
2
X e
j n
(1.25)
Note that index n goes with th frequency. These two equations (1.25) and (1.24) are
called the discrete-time Fourier transform pair and are also written as:
x[k ] X
(1.26)
Both the continuous-time and the discrete-time Fourier series coefficients are discrete.
The coefficients of the discrete-time Fourier transform (DTFT) however are continuous,
just as they are for the continuous-time case.
We learned in Chapter 3 that discrete signals produce a spectrum that repeats with
fundamental frequency. The Fourier Transform of the discrete signals also repeats with
the fundamental frequency, the only difference being that the DTFT is continuous where
the DTFS spectrum is discrete.
CTFT of an aperiodic signal
CTFT of a periodic signal
DTFT of an aperiodic signal
DTFT of a periodic signal
Page 19
Example 4-8
Find the DTFT of this signal.
So here we now look at three impulses as opposed to just two in Example 4-1. In that
case, the result was a cosine function.
x[k ]
[k
[k ]
1]
[k
1]
0.5
0
-4
-2
(k
1)e
j k
(k )e
1
1
j k
k
j
(k
1)e
j k
ej
2 cos
3
2
1
0
-1
-3
-2
Page 20
Here we also get a cosine wave. What happens if we have four impulses? Would we still
get a cosine?
Example 4-9
What is the DTFT of this discrete signal?
We can again treat each one of these individually.
x[k ]
[k ]
2 [k
1]
4 [k
2]
0
-4
-2
X( )
(k )e
j k
1
1
1
2 (k
1)e
j k
2e j 2
4e j 4
cos(2 ) j sin(2 )
cos(2 ) 2 cos(4 )
4 (k
2)e
j k
2 cos(4 ) 2 j sin(4 )
j (sin(2 ) 2 sin(4 )
Re al
Im ag
4
3
2
1
0
-1
-3
-2
0
Digital Frequency
Page 21
3
2
1
0
-1
-2
-3
-3
-2
0
Digital Frequency
-2
0
Digital Frequency
2
3
0
Digital Frequency
2
3
20
15
10
5
0
-3
3
2
1
0
-1
-2
-3
Figure 4.13 (a) Real portion of the DTFT (b) Imaginary part of the DTFT, (c) the
power spectrum of the signal, (d) the phase spectrum of the signal.
We also have three pulses here although of unequal magnitude. But the spectrum is still a
form of a cosine wave. A spectrum is usually plotted as the square of magnitude of the
signal. Here we plot the power spectrum and the phase spectrum of the signal.
Page 22
I have been giving a short shrift to the phase. The reason is that in a majority of the cases,
phase is not very instructive. In practical sense, there is not much we can do to control
phase. For communication signals, it is the amplitude or the power spectrum that gives
the information that we want and need. However for radar applications, phase
information is very important and can be used to determine both the motion and Doppler
shift of the signal. So phase is not always useless.
Example 4-10
Find the DTFT of this signal.
1.5
1
0.5
0
-4
-3
-2
-1
0
Time, k
-5
-3
-2
0
Frequency
Page 23
plot(t, xom)
pilabels
xlabel('Frequency')
hold on
X( )
x [n ]e
j n
sin
2N
1e
k
j n
2
1
sin
2
Here we have five impulses. The spectrum equation looks like a sinc function but it is
instead a variation, called the Drichlet function. The Drichlet function is essentially a
repeating or periodic sinc function. With size of pulse greater than 3, we begin to see a
repeating sinc function as the spectrum of such signals.
The DTFT just as is the CTFT is continuous. But it has an additional property that we
mentioned in relation to the discrete Fourier Series. The spectrum obtained by a DTFT
also replicates at the fundamental frequency of the discrete signal. In Fig. 4-14, the
spectrum has a period of 2 .
x [k ]
0k
K0
1
K0
x[k ]e
jn
0k
K0
FT of this periodic signal is also given by the same relationship we derived for
continuous signals in Eq. (1.24). The DTFT of a periodic signal is also the sampled
version of the discrete-time Fourier series coefficients, just as for the continuous time
case.
Page 24
X( )
Cn
2
n
2 n
K0
(1.27)
Here the coefficients (which come from the DTFSC) repeat with the fundamental
frequency 0 2 / K0 .
The DTFT of aperiodic signals is continuous. In most cases, the DTFT is obtained by
closed from analysis, and not by computers. This is because the computer solutions are
by necessity, discrete. So we have two issues we want to address, how to compute the
DTFT of a signal numerically and two how to make the DTFT apply to periodic signal.
We showed that the DTFT of periodic signals are continuous and repeating. The same
signal if made periodic has the same coefficients except they are discrete per Eq. (1.27).
The reason is somewhat intuitive. The periodicity means that the signal information is
repeating with some frequency. As you recall we said that for discrete signals, the
harmonics of the digital frequency are identical. They do not give us any unique
information. All the information comes from harmonics that are instead inside the
fundamental period.
For the case of periodic discrete signals, we take the same coefficients from the aperiodic
case, but now add an additional condition of a repeating period. But did we not say that
the coefficients of the aperiodic signal repeat? So what is different here? What is the
relationship of the frequency at which the aperiodic coefficients repeat vs. the periodic
signal. If the aperiodic signal has an infinite period, then what is that frequency at which
the DTFT was repeating?
Now here is where we get tricky. The period of the DTFT for the aperiodic signals is
This is kind of a generic period. Not related to any frequency per say. So now if the
signal is actually repeating lets say at a frequency of 0 , then the DTFT will repeat
2 .
Example 4-12
Find the FT of the periodic impulse train.
Page 25
x[k ]
(n
Nk )
n
1
N 5
...
...
2
N
x[k ]e
j n
1
K0
k K0
The FT is given by
X( )
2
K0 n
The FT is plotted for N = 5. The transform repeats at the fundamental frequency which is
2
.
5
Example 4-12
Find the DTFT of x[k ]
cos( 0k ) .
Assume that
1 j
e
2
0k
1
e
2
0k
2
5
Page 26
1
at k =
2
1.
get for
2
5
X( )
2
5
X ()
2 0 2
2 0
2 0
2 0
. This is identical in
Example 4-13
Find the DTFT of this discrete periodic signal.
x[k ]
ej
0k
This is the complex exponential of a specific frequency. We will use Eq. (1.27) to find
the DTFT of this signal. The DTFSC of this signal we know from Example 3-9, Chapter
3. The coefficients already repeat with frequency 0 .
Dn
1 n
0 elsewhere
2 m
0.
Page 27
Example 4-13
Find the DTFT of this discrete periodic signal. The signal is periodic with period K 0 . The
length of the impulses is K p samples.
1.5
1
0.5
0
-10
-8
-6
-4
-2
0
Time, k
0
-4
-3
-2
-1
Frequency
Figure 4-17 DTFT of a periodic signal (a) time domain signal, (b) DTFSC of the
signal.
The DTFSC of this signal are discrete and are given by
Real C n
1 sin K pn / K 0
K 0 sin n / K 0
Page 28
T
2
T
2
sinc
n
T
At n = 2, the spectrum shows a zero value which is what you get for sinc(1). The sinc
function is zero at all integer values of its argument. This corresponds to a frequency of
2 . The spectrum hence is zero at n = 2, 4, 6, which corresponds to frequencies of
2 , 4 , 6 , .
For case / T .2 where the argument of the sinc function is n / 5 , the spectrum is zero
5, 10, 15, which corresponds to frequencies of 5 , 10 , 15 , .
at n
Note that as the / T 1 , the spectrum begins to look like an impulse function, which is
exactly the spectrum of an impulse train.
Page 29
1
t/T = .95
0.5
0
-0.5
-10
-8
-6
-4
-2
0
2
Harmonic index
10
1
t/T = .75
0.5
0
-0.5
-10
-8
-6
-4
-2
0
2
Harmonic index
10
0.6
t/T = .5
0.4
0.2
0
-0.2
-10
-8
-6
-4
-2
0
2
Harmonic index
10
0.3
t/T = .2
0.2
0.1
0
-0.1
-20
-15
-10
-5
0
5
Harmonic index
10
15
20
Page 30
0.15
t/T = .1
0.1
0.05
0
-0.05
-40
-30
-20
-10
0
10
Harmonic index
20
30
40
Figure 4.19 The discrete coefficients of the continuous signal as a function of the
duty cycle of the signal. As the pulse gets narrow, its CTFSC get more dense.
% Figure 4-19
clf
tT = .1;
n = -10: .01: 10;
xom = tT*sinc(n*tT);
plot(n, xom, '-.')
grid on
hold on
k = -40: 40;
xomd = tT*sinc(k*tT);
stem(k, xomd, 'filled')
xlabel('Harmonic index')
legend('t/T = .1')
The ratio / T is called the duty cycle of the signal. A small duty cycle means that
energy is concentrated in much smaller period of time which means that more
frequencies are required to represent it (it is approaching a delta function!) A duty cycle
of .5 means that the energy is less concentrated. This case has the narrowest main lobe of
all cases shown, i.e. this case requires the least amount of bandwidth. As duty cycle
decreases, the spectrum gets wider.
Page 31
sinc
Assume that
. We plot the CTFT below. Compare this to the expression for the
periodic case above. This signal is continuous but also aperiodic. The zeros occur every 2
Hz, why? For
, we get
X( )
sinc
So for this case, the sinc function, hence the spectrum is zero for all interer multiples of 2
2 , we get crossings every 5 Hz. And for
Hz. Similalry for
, we get zero
5
5
crossing every 10 Hz.
0.6
0.4
0.2
0
-0.2
-8
-6
-4
-2
Page 32
0.2
0.15
0.1
0.05
0
-0.05
-25
-20
-15
-10
-5
10
15
20
25
-40
-30
-20
-10
10
20
30
40
50
0.15
0.1
0.05
0
-0.05
-50
Figure 4.20 The CTFT of the continuous but aperiodic square pulse as a function of
the width the square pulse. As the pulse gets narrow, its lobes in the spectrum get
wider.
% Figure 4.20
clf
tT = .50;
n = -50: 1: 50;
xom = tT*sinc(n*tT/(2*pi));
plot(n/(2*pi), xom)
grid on
Here the spectrum is plotted as function of the frequency. As the time duration of the
pulse narrows, the signal content spreads. The shape is the same as that of the CTFS case.
Both are a non-repeating sinc function, with zero crossings at integer multiple of the
fundamental frequency of the signal, main difference being that the first is discrete and
the second continuous.
Page 33
Now lets look at the same signal, in a discrete form. We will use the discrete version of
the signal shown in Figure 4.18.
1
0.5
0
-10
-5
10
15
-10
-8
-6
-4
-2
-10
-8
-6
-4
-2
1
0
-1
Figure 4.22 The discrete-time periodic signal and its DTFSC - pulse size
Kp
7, K 0
.
In this case, we essentially have an impulse train. The period is 1/7 seconds and as such
in the frequency domain, we get impulses located 7 bins apart, each of which are 2 / 7
Hz apart. Hence in the frequency domain the frequency pulses have a period of 2 which
corresponds to the period of 7 samples.
Page 34
1.5
1
0.5
0
-10
-8
-6
-4
-2
-10
-8
-6
-4
-2
1
0
-1
Figure 4.23 The discrete-time periodic signal and its DTFSC - pulse size
Kp
6, K 0
In this case, the pulse size is 6 samples in time domain lasting 6/7 sconds. In frequency
domain each bin is 2 / 7 .897Hz . We see in the frequency domain that the main lobe is
a little over 1 bin wide, which is a bandwith of 7/6 Hz, and is equal to the inverse of the
pulse duration time. A wide pulse has narrow bandwidth so in the available frequency
space of 2 , we see a sinc like pattern such as we would expect having seen the results
from the discrete case. As long as the pulse width is
, we will see the sinc function
tails.
1.5
1
0.5
0
-10
-8
-6
-4
-2
-10
-8
-6
-4
-2
1
0
-1
Figure 4.24 The discrete-time periodic signal and its DTFSC - pulse size
Kp
5, K 0
In this case, the pulse size is 5 samples in time domain lasting 5/7 sconds. In the
frequency domain the main lobe is approximately 1.5 bins wide, from which we get a
bandwidth of 1.35 Hz, which is pretty close to actual the bandwith of 7/5 Hz = 1.4 Hz,
the inverse of the pulse duration time. We still see a sinc like pattern since the width of
the pulse is still
.
Page 35
1.5
1
0.5
0
-10
-8
-6
-4
-2
-10
-8
-6
-4
-2
1
0
-1
Figure 4.25 The discrete-time periodic signal and its DTFSC - pulse size
Kp
5, K 0
In this case, the pulse size is 4 samples in time domain lasting 4/7 sconds. In the
frequency domain that the main lobe is approximately 2 bins wide, from which we get a
bandwidth of 1.79 Hz, which is pretty close to actual the bandwith of 7/4 Hz = 1.75 Hz,
the inverse of the pulse duration time. The sinc like tails are enow beginning to disappear.
1.5
1
0.5
0
-10
-8
-6
-4
-2
-10
-8
-6
-4
-2
1
0
-1
Figure 4-25 The discrete-time periodic signal and its DTFSC - pulse size
Kp
3, K 0
In this case, the pulse size is 3 samples in time domain lasting 3/7 sconds. In the
frequency domain the main lobe is approximately 2.5 bins wide, from which we get a
bandwidth of 2.4 Hz, which is pretty close to actual the bandwith of 7/3 Hz = 2.3 Hz, the
inverse of the pulse duration time. The sinc tails are no longer seen because the pulse size
is narrowing and requires more than half the bandwidth and hence we are now getting a
form of alaising effect.
We see the same thing in the next graph, where the pulse is very narrow compared to the
period and ovelaps the spectrum of the previous pulse.
Page 36
1.5
1
0.5
0
-10
-8
-6
-4
-2
-10
-8
-6
-4
-2
1
0
-1
Figure 4.27 The discrete-time periodic signal and its DTFSC - pulse size
Kp
2, K 0
1.5
1
0.5
0
-10
-8
-6
-4
-2
-10
-8
-6
-4
-2
1
0
-1
Figure 4.28 The discrete-time periodic signal and its DTFSC - pulse size
Kp
1, K 0
In this case, we have devolved to case similar to the first one, the pulses are located 7
samples apart and hence in frequency domain they are much closer, which being the
inverse of period time. In frequency domain each pulse is one bin apart with resolution of
2 / 7 Hz.
% Figure 4.28
clf
K0 = 7;
N = 1;
a = [1];
b = [ a 0 0 0 0 0 0 ];
Page 37
c = [ b b b];
subplot(2,1,1)
t = -11: 9;
stem(t, c)
axis([-11 9 0 1.5])
subplot(2,1,2)
n = -14: 13;
xom = (N/K0)*diric(2*n*pi/K0, N);
grid on
stem(n, xom, 'filled')
hold on
n = -11: .01: 9;
xom2 = (N/K0)*diric(2*n*pi/K0, N);
plot(n, xom2, '-.r' )
axis([-11 9 -1 1])
0.5
0
-4
-3
-2
-1
4
2
0
-2
-10
-8
-6
-4
-2
10
Figure 4.29 The discrete-time aperiodic signal and its DTFSC - pulse size = 3
The spectrum is continuous and repeating.
Page 38
0.5
0
-6
10
-4
-2
5
0
-5
-10
-8
-6
-4
-2
10
Figure 4.30 - The discrete-time aperiodic signal and its DTFSC - pulse size = 7
This is a DTFT of similar signal with a longer pulse length. Just as we said in the
previous case, a longer pulse has smaller frequency content so the spectrum is not aliased
and we do see the sinc pattern in between the main lobes.
However, now we ask a key question. If DTFT assumes that the signal has an infinite
period, then why does it matter how long the pulse is relative to the number of points
shown?
Answer for that can be seen in the limits of the calculation of the DTFT.
N
X( )
x [n ]e
k
sin
2N
j n
1e
k
j n
2
1
sin
2
The DTFT is being calculated only with the width of the pulse as a variable and nothing
else. Since larger the number of discrete harmonics, the better the resolution, this
becomes more of a resolution question rather than the issue of the time width of the
pulse. We are measuring the width of the pulse by the number of samples and not time.
When we are looking at the spectrum of a discrete aperiodic signal, we are seeing only
the frequency content in that portion.
Page 39
In case (a), only three functions have been added to produce the curve, one for each
impulse sample of the signal, In case (b), we have used 7 such functions, each with a
resolution of 2 N . Although both are periodic with 2 , the second case has better
resolution.
Then we have another question. Why is it not being interpreted as a train of impulses?
Why arent we getting a spectrum same as 4.26? What else is going on here? Actually it
is interpreting it as impulses, just that it is adding all the impulse responses of each of
the N impulses instead of giving the response of just one. So the more of these impulses
there are, the more functions are being added to produce the spectrum. If we wanted the
signal to be interpreted as independent impulse train, then we would set the pulse period
to K p = 1.
Dn
So this means that the DTFT of a periodic signal is the sampled version of the DTFS. We
computed the DTFS of square pulses in Case 3. The DTSFC computed of a periodic
discrete waveform already appear to be discrete so what are we doing extra here? Well
not much. The process here just multiplies the coefficients by an impulse train in the
frequency domain of an assumed fundamental frequency. This assumed frequency can be
different than the one used in DTFS or it can be the same. If it is same, we will get the
same values as DTFS except scaled by 2 . If not the same, then we will get a decimated
version.
All of these ideas about Fourier series, the signal periodicity and the Fourier transform
are so closely related that they have tendency to be confused and forgotten. But as we
shall see later when looking analysis of real signals using Fourier transform that they tool
is very forgiving and we can get useful information even we do not do the correct
thing, i.e. use the Fourier transform when as Fourier series is the correct answer.
In the next chapter we will talk about DFT and FFT which is how these tools are used.
Page 40
Summary
1. Fourier series is not intended for aperiodic signals.
2. Fourier transform is an extension of the Fourier series and applies to aperiodic
signals by assuming that the period of the signal is infinite.
3. This assumption results in a spectrum that is continuous since the fundamental
frequency is now zero.
4. The continuous-time Fourier Transform (CTFT) of aperiodic signals is
continuous.
5. The discrete-time Fourier Transform (DTFT) is developed in exactly the same
way as the CTFT assuming that fundamental period approaches infinity.
6. This also results in a continuous spectrum but on that repeats same as DTFSC.
7. We can use the DTFSC to compute a DTFT of a periodic signal.
8. The DTFT of a periodic signal is a sampled version of the DTFSC.
Charan Langton
Copyright 2012, All Rights reserved
www.complextoreal.com
[email protected]
Page 41