Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
33 views

Decimation and Interpolation

Decimation and Interpolation is the Fast fourier transform of the location of poles and zeros for the input signal

Uploaded by

nagasaikiran
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Decimation and Interpolation

Decimation and Interpolation is the Fast fourier transform of the location of poles and zeros for the input signal

Uploaded by

nagasaikiran
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

clc;

clear all;
close all;
i=input('decimation factor');
N=input('no of samples');
n=0:N-1;
x=sin(2*pi*.1*n);
y=interp(x,i);
subplot(211);
stem(n,x(1:N));
xlabel('time');
ylabel('amplirude');
title('input sequence');
m=0:(N*i)-1;
subplot(212);
stem(m,y(1:N*i))
xlabel('time');
ylabel('amplitude');
title('decimation sequence');
decimation factor 2
no of samples 20

input sequence

amplirude

1
0.5
0
-0.5
-1

amplitude

10
12
time
decimation sequence

14

16

18

20

1
0
-1
-2

10

clc;
clear all;
close all;
d=input('decimation factor');
N=input('no of samples');
n=0:N-1;
x=sin(2*pi*.1*n);
y=decimate(x,d);
subplot(211);
stem(n,x(1:N));
xlabel('time');
ylabel('amplirude');
title('input sequence');
m=0:(N/d)-1;
subplot(212);

15

20
time

25

30

35

40

stem(m,y(1:N/d))
xlabel('time');
ylabel('amplitude');
title('decimation sequence');
decimation factor 10
no of samples 100
input sequence

amplirude

1
0.5
0
-0.5
-1

10

20

30

40

50
60
time
decimation sequence

amplitude

0.4

70

80

90

100

0.2
0
-0.2
-0.4

time

You might also like