First time here? Check out the FAQ!

Ask Your Question
1

performing a higher resolution FFT

asked 10 years ago

Geremia gravatar image

How do I interpolate (up-sample) a discrete function so that I can perform a more refined FFT spectral analysis on it?

(Note: By default, NumPy's FFT command produces a list of the same dimension as the input list.)

thanks

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 10 years ago

ADuC812 gravatar image

updated 10 years ago

I am not sure if this is what you want, but if you add some number of zeros in the end of your input list you will get higher resolution (just more points) in the output. This trick works best if your signal decays to zero in the end (and is zero at the beginning). It does not, however, improve the actual resolution of the FFT, for example in case the characteristic frequency in your signal is not an exact multiple of the sampling rate. In the latter case, you can use Hamming window for example to improve resolution.

Preview: (hide)
link

Comments

Oh, yes, using a windowing function is a good idea. thanks

Geremia gravatar imageGeremia ( 10 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 10 years ago

Seen: 1,209 times

Last updated: Mar 17 '15