EXPERIMENT - 05
AIM: WAP in MATLAB to generate the Fourier Transform of a signal.
SOFTWARE USED: MATLAB
THEORY:
The Fourier transform is an integral transform that converts a
function into a form that describes the frequencies present in the
original function. In layman’s terms, a Fourier transform of a signal
tells you what frequencies are present in your signal and in what
proportions.
In MATLAB, y=fft(x) computes the discrete Fourier transform (DFT) of
x using a Fast Fourier Transform(FFT) algorithm.
While computing the Fourier transform of a function in MATLAB, the
absolute value of each element is required to compute the graph of
the transform. This can be done using the mg=abs(y) function.
To find the desired phase angle of the Fourier transform, ph=angle(y)
returns the phase angle in the interval[-π,π] for each element of a
complex array y. The angles in theta are such that
y=abs(y).*exp(i*ph).
CODE:
OUTPUT: