Decimation & Interpolation: Hassan Ali (180656)
Decimation & Interpolation: Hassan Ali (180656)
Use of ADC
Submitted To:
Engr. Sharoze Sohail
Lab Engineer
Page | 1
Lab # 10
Decimation & Interpolation
Objective:
To learn about interpolation and decimation
Introduction:
Decimation:
Decimation is the process of reducing the sampling rate. In practice, this usually implies low
pass-filtering a signal, then throwing away some of its samples.
Down-sampling is a more specific term which refers to just the process of throwing away
samples, without the low pass filtering operation.
The decimation factor is simply the ratio of the input rate to the output rate. It is usually
symbolized by “M”, so input rate / output rate=M.
The most immediate reason to decimate is simply to reduce the sampling rate at the output of one
system so a system operating at a lower sampling rate can input the signal. But a much more
common motivation for decimation is to reduce the cost of processing:
the calculation and/or memory required to implement a DSP system generally is proportional to
the sampling rate, so the use of a lower sampling rate usually results in a cheaper
implementation.
Interpolation:
Up-sampling is the process of inserting zero-valued samples between original samples to
increase the sampling rate. (This is called “zero-stuffing”.) Up-sampling adds to the original
signal undesired spectral images which are centered on multiples of the original sampling rate.
Interpolation, in the DSP sense, is the process of up-sampling followed by filtering. (The
filtering removes the undesired spectral images.) As a linear process, the DSP sense of
interpolation is somewhat different from the “math” sense of interpolation, but the result is
conceptually similar: to create “in-between” samples from the original samples. The result is as
if you had just originally sampled your signal at the higher rate.
The primary reason to interpolate is simply to increase the sampling rate at the output of one
system so that another system operating at a higher sampling rate can input the signal. The
interpolation factor is simply the ratio of the output rate to the input rate. It is usually symbolized
by “L”, so output rate / input rate=L.
Page | 2
LAB TASKS
Task#01:
Code:
Output:
Page | 3
Task#02:
Simulink:
Outputs:
Original Signal:
Page | 4
Down Sampled:
Up Sampled:
Page | 5
Task#03:
Simulink:
Outputs:
Original Signal:
Page | 6
Up Sampled:
Down Sampled:
Learning Outcomes
In this lab we learned about decimation and interpolation. We learnt the working of down-
sampling and up-sampling. How the rate of samples are increased and decreased during down
and up sampling. We learnt how the samples are added in between the samples in up-sampling
and what is their effect on the output.
Page | 7