DSP Lab 10 (Decimation & Interpolation)
DSP Lab 10 (Decimation & Interpolation)
Engineering, Islamabad
Lab # 10
Decimation & Interpolation
C@SE 2
Digital Signal Processing Lab
2.2 Interpolation
The process of increasing the sampling rate is called interpolation. Interpolation is
upsampling followed by appropriate filtering. y[n] obtained by interpolating x[n], is generally
represented as:
n
y[n] = x[ ]
L
The simplest method to interpolate by a factor of L is to add L-1 zeros in between the
samples, multiply the amplitude by L and filter the generated signal, with a so-called anti-
imaging low pass filter at the high sampling frequency.
The upsampled signal satisfies the Nyquist-Shannon sampling theorem if the original
signal does. Unlike in downsampling, which uses a low-pass filter as an anti-aliasing filter,
upsampling uses an interpolation filter, which also is a low-pass filter.
k k
f if is an integer
g ( x) = L L
0 otherwise
2. Filter with a low-pass filter, which, theoretically, should be the sinc
π
filter with frequency cut off at .The second step calls for the use of a
L
perfect low-pass filter, which is not implementable. When choosing a realizable low-
pass filter this will have to be considered and it will have aliasing effects.
3.
C@SE 3
Digital Signal Processing Lab
4. MATLAB Simulation
• Generate a sinusoid of 3 KHz at a sampling Frequency of 12 KHz.
• Write a MATLAB function that performs Interpolation.
• Write a MATLAB function that performs Decimation.
• Plot the original and decimated signal in both Time & Frequency Domain.
C@SE 4
Digital Signal Processing Lab
• Signal Generation
• Interpolation Fuction
• Decimation Function
C@SE 5