You are on page 1of 2

1

CD TO DVD DATA
AIM : TO CONVERT CD TO DVD DATA
SOFTWARE : MATLAB 2013a
THEORY :
HERE We convert cd data to dvd data i.e., By changing samling frequency
which can be done upsampling followed by antiimage filter then
downsampling followed by antialisaing filter.cd uses sampling frequency
44100KHz dvd 96000Khz.so,L/M=960/441 =[8 8 5]/[3 7 7] i.e.,
8 upsampling THEN filterING at wn=
1/L 0r M (which ever is greater) then downsample 7 and so on
PROGRAM :
clc
clear all
close all
fs=44100;
n=1:1000;
y=[1 0.8]*sin(2*pi*[10000
5000]*n/fs);
y1=y;
L=[8 8 5];%96000/44100=[8 8 5]/[3 7 7]
M=[7 7 3];
for i=1:3%3 stages
u1=upsample(y1,L(i));
if (L(i)>M(i))
h1=fir1(100,1/L(i));
else
h1=fir1(100,1/M(i));
end
f1=filter(h1,1,u1);%both filters
d1=downsample(f1,M(i));
y1=d1;
end
len=length(y1);
f=[0:len-1]*fs*8*8*5/(7*7*3*len);
plot(f,abs(fft(y1))),title('sxw');
CD TO DVD DATA
2
RESULT : CD TO DVD DATA CONVERTED AND PLOTS ARE OBSERVED AND VERIFIED
Published with MATLAB R2013a

You might also like