fft window

hi, the fft can be calculated with sevral windows (the step function,gaousian ext.) how can i choose what window the program uses in order to calculate the fft? is it the same for ifft as well? thank you.

Answers (1)

Wayne King
Wayne King on 1 Apr 2012
You cannot choose it inside of fft(). What you do is multipy the data by the window before you use fft()
x = randn(1e3,1);
x = x.*hamming(1e3);
xdft = fft(x);

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Asked:

a
a
on 1 Apr 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!