Ask Your Question

performing a higher resolution FFT

asked 2015-03-17 01:13:22 -0500

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.)


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-17 08:54:43 -0500

ADuC812 gravatar image

updated 2015-03-17 08:55:46 -0500

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.

edit flag offensive delete link more


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

Geremia gravatar imageGeremia ( 2015-03-17 12:00:59 -0500 )edit

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


Asked: 2015-03-17 01:13:22 -0500

Seen: 207 times

Last updated: Mar 17 '15