In this lab, we learn how to compute the continuous-time Fourier transform (CTFT), normally referred to as Fourier transform, numerically and examine its properties. Also, we explore noise cancellation and amplitude modulation as applications of Fourier transform.
Properties of ctft
The continuous-time Fourier transform (CTFT) (commonly known as Fourier transform) of an aperiodic signal
is given by
The signal
can be recovered from
via this inverse transform equation
Some of the properties of CTFT are listed in
[link] .
Properties |
Time domain |
Frequency domain |
Time shift |
|
|
Time scaling |
|
|
Linearity |
|
|
Time convolution |
|
|
Frequency convolution |
|
|
Properties of CTFT
Refer to signals and systems textbooks
[link] -
[link] for more theoretical details on this transform.
Numerical approximations to ctft
Assuming that the signal
is zero for
and
, we can approximate the CTFT integration in Equation (1) as follows:
where
and N is an integer. For sufficiently small
, the above summation provides a close approximation to the CTFT integral. The summation
is widely used in digital signal processing (DSP), and both LabVIEW MathScript and LabVIEW have a built-in function for it called
fft
. In a .m file, if N samples
are stored in a vector
, then the function call
>>xw=tau*fft
(x)
calculates
where
with N assumed to be even. The
fft
function returns the positive frequency samples before the negative frequency samples. To place the frequency samples in the right order, use the function
fftshift
as indicated below:
>>xw=fftshift(tau*fft
(x
)
)
Note that
is a vector (actually, a complex vector) of dimension N.
is complex in general despite the fact that
is real-valued. The magnitude of
can be computed using the function
abs
and the phase of
using the function
angle
.