Professional Documents
Culture Documents
Aim: To study the effect of down sampling in the frequency domain & perform it susing
‘SCILAB’ software.
Software: - SCILAB
Theory:
In digital signal processing, decimation is the process of reducing the sampling rate of
a signal. The term downsampling usually refers to one step of the process, but sometimes the
terms are used interchangeably. Complementary to upsampling, which increases sampling
rate, decimation is a specific case of sample rate conversion in a multi-rate digital signal
processing system. A system component that performs decimation is called a decimator.
clc
clear
fs=4800
t=0:1/fs:0.1
L=6
t1=0:1/(fs/L):0.1
x=3*sin(100*%pi*t)+5*sin(200*%pi*t)
subplot(3,1,1)
plot(t,x,"bo")
x2=3*sin(100*%pi*t1)+5*sin(200*%pi*t1)
subplot(3,1,1)
plot(t1,x2,"ro")
x1=3*sin(100*%pi*t1)+5*sin(200*%pi*t1)
subplot(3,1,1)
plot2d3(t1,x1,style=5)
xf=abs(fft(x))
n=length(x)
f=0:fs/n:fs
subplot(3,1,2)
plot(f(1:length(xf)),xf)
xf1=abs(fft(x1))
n1=length(x1)
f1=0:(fs/L)/n1:(fs/L)
subplot(3,1,3)
plot(f1(1:length(xf1)),xf1)
Output Window: (1)
Output Window : (2)
Conclusion: