

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


The FFT is a faster version of the Discrete Fourier Transform (DFT).It is an efficient algorithm for computing the Discrete Fourier Transform. Syntax: Y = fft(x)Y = fft(X,n) Y = fft(X,[],dim)Y = fft(X,n,dim)
Description:
There are two main families of FFT algorithms:
The window length is the length of the input data vector. It is determined by the size of an external buffer.The transform length is the length of the output, the computed DFT. An FFT algorithm pads or chops the input to achieve the desired transform length.The execution time of an FFT algorithm depends on the transform length. It is fastest when the transform length is a power of two and has only small prime factors.
n=0:7; x=[4 3 2 1 1 2 3 4] a=fft(x) Mag=abs (a); pha=angle(a); Subplot (2, 1, 1); Plot (mag); Grid on Title (‘magnitude response’) Subplot (2, 1, 2) Plot (pha); Grid on Title (‘phase response’) End