EmbDev.net

Forum: DSP What is the effect of reducing nfft less than the signal length


Author: Usman Ashraf (Company: LUMS) (usmanashraf678)
Posted on:

Rate this post
0 useful
not useful
Dear members,
I am analyzing a signal in matlab by taking its fft. The singal has 200 
samples and I am currently taking nfft = 256. I understand that this 
would result in zero padding. Now, I want to try to reduce the nfft to 
128, 64 etc. I wanted to ask what should I expect to happen with the 
fft.

Matlab says
for Y = fft(X,n)
If X is a vector and the length of X is greater than n, then X is 
truncated to length n. What would this actually result in? Can anyone 
explain, please?

Thanks in advance.

Author: Andreas Schwarz (andreas) (Admin) Flattr this
Posted on:

Rate this post
0 useful
not useful
You will get a reduced frequency resolution, and, depending on your 
input vector, windowing artifacts (you can consider truncation as 
equivalent to applying a rectangular window).

Author: Martin B. (Guest)
Posted on:

Rate this post
0 useful
not useful
You may also use Nfft = 200

I think in matlab you can use any number Nfft which is a factor of 
2,3,5.
It is not neccesary to use Nfft = 2^n, You may also use 
Nfft=200=2*2*2*5*5

Most fft librraries are able to use these numbers of Nfft (fftw, kissFFT 
..)

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig