Google

main
dspblog
cyclic_signals
FFT_interpolation
FFT_interpolation_how_does_it_work
FFT_smoothness_cyclic
discrete_time_reconstruction
discrete_time_reconstruction2
Nyquist_on_the_edge
FFT_delay_special_case
Fourier_reconstruction
pulse_and_Nyquist
FFT_complexError
matlabOctave
matlab_upsampling
matlab_downsampling
FFT_delay
FFT_filter_example
FFT_interpolation_example
FFT_bin_frequencies
fit_signal
FFT_peaksearch_audio_example
matlab_binary_readwrite
Octavesvg
C
FFTW_example
looprecord
SNR
SNR3
SNR_example_96kAudio
SNR_FFT_correlation_example
lua
luagpib
luasplit
luadump
mnoofltk
wxLuaDll
wxLua_loadAsDll
wxLua_HelloWorld
wxLua_simpleButton
wxLua_resourceManagement
wxLua_XMLparser
DSP
IQ_LO
IQ_LO_2
optimum_receiver
DSP_basics
sampleRateChange_terms
dirac_pulse
freqresp_s
zfilter_example
freqresp_z
freqresp_z_sign
misc
zero_forcing_equalizer_example
nonminphase_inverse
periodic_spectrum
lagrange_multipliers
Entropy
RC_chopper
TRex450_setup
EP100
EP100SE
EP100Gremlins
essential_spares
tail_rotor
motoradjustment
blade_balancing
blade_repair
GAUI_SAE12A
Walkera43


valid html (click to verify)



prevupnextdisable ads

Interpolation using FFT

Summary

FFT can be used to increase the sampling rate of a signal, in steps of one extra sample per cycle

Example

Figure 1 shows a continuous-time example signal (blue), sampled at a rather low rate (red).

Figure 1: Original continuous-time and sampled signal

FFT-based interpolation can increase the sample rate for example by factors of 2, 5 and 20 (Fig. 2, 3 and 4).
The blue curve shows the continuous-time waveform for clarity.
Interpolation uses uses only the samples (red in Fig. 1) as input.
Figure 2: FFT interpolation by 2
Figure 3: FFT interpolation by 5
Figure 4: FFT interpolation by 10

Accuracy

Besides numerical roundoff, there is no error.
For a periodic signal, FFT interpolation is not an approximation, but an exact solution
Correctly used, is orders of magnitude more accurate than other common methods, for example polynomial interpolation or reasonably sized filters.

How does it work?


Where is the catch?

Used correctly: there isn't any.


Matlab / octave code

Download Matlab / Octave function

mn_FFT_interpolation.m

Usage

data=mn_FFT_interpolation(data, 'factor', 3)
The number of samples in data increases by a factor of 3

data=mn_FFT_interpolation(data, 'nSamplesAdded', 3)
The length of data increases by 3 samples.

data=mn_FFT_interpolation(data, 'nSamplesTotal', 300)
The resulting length of data is 300 samples.

Parameters leading to less output than input samples will cause an error message.


prevupnextdisable ads

© Markus Nentwig 2007-2008
The content of this page is provided without any warranty and may not be reproduced without permission.

Comments? Questions?

Please send me a mail! mnentwig@elisanet.fi