Multirate Sampling

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Program – 11

Implementation of I/D sampling rate converters

Date:15/4/24 Y.Sai Ruthvika(21-487)

Aim: To implement sampling rate conversion by a rational factor on a given

sequence. Requirements: Personal Computer with MATLAB software v 8.5

Theory:For variation in sampling rate by a rational factor there is a need for using both interpolator and
decimator in cascade.

Program:
clc;
clear all;
close all;
i=input('enter interpolation factor : ');
d=input('enter decimator factor : ');
n=0:0.1:2*pi;
x=sin(n);
stem(x);
xlabel("number of samples");
ylabel("amplitude");
title("original signal");

1
y=resample(x,i,d);
stem(y);
title("resampled signal");
xlabel("number of samples");
ylabel("amplitude");

Result: Implemented sampling rate conversion by a rational factor on a given sequence. 2

You might also like