Re: windowing and zero-padding



On Mar 7, 11:16 am, M.Aram...@xxxxxxxxxxx wrote:
Suppose I have a sequence of n samples where n is not a power of 2 and
I zero-pad that
sequence up to the next power of 2 number of samples before computing
the FFT of the
resulting padded sequence.

If I want to apply windowing (e.g. Hamming) before computing the FFT,
should the window
width used to compute the windowing weights be n (the original number
of samples) or
should it be the next power of 2 (i.e. padded) number of samples?

-Michael

Michael,

The window should be the same length as the data, not rounded up to
the next power of 2.

Also, you want to use the definition of the window where the 1st and
last point are the same. For 'n' data points, and an 'n' point FFT,
the 2nd point and the last point are usually the same. The first
window is symmetric, the second is implied symmetric when you consider
the implied periodicity of the data being FFT'ed.

Dirk
.



Relevant Pages

  • Re: FFT for N Not a Power of 2
    ... remove the largest number of observations that are a power of 2, ... There are FFT algorithms that work for any N, including prime numbers, but ... with floor rising near the two tones. ... had to ensure that the length of the window and periods of each of the ...
    (sci.optics)
  • Re: windowing and zero-padding
    ... sequence up to the next power of 2 number of samples before computing ... resulting padded sequence. ... If I want to apply windowing before computing the FFT, ...
    (comp.dsp)
  • Spectral analysis
    ... I am familiar with computing the spectrum of a real time signal using FFT ... after windowing it using a window such as hamming to increase the resolution ...
    (comp.dsp)
  • Re: windowing and zero-padding
    ... If I want to apply windowing before computing the FFT, ... Zero padding is equivalent to applying a rectangular window. ...
    (comp.dsp)
  • Re: Are harmonics real?
    ... If you set up your data acquisition and FFT so that the window ... shaft speed that will show up as harmonics of the shaft fundamental. ...
    (comp.dsp)

Loading