计算机与信息技术学院综合性实验报告
实验目的
、升余弦滤波器以及部分响应
实验设备
装有matlab仿真软件的PC机一台
实验原理
:iHω+2iπ∕Ts=Ts
:St=sinπtT1-α+4αtTcosπtT1+απtT1-4αtT2
,并且存放在发送、接收滤波器,使得:hnT=1 &n=0,10 n≠0,1 ,那么满足该条件的滤波器在时域可以认为是两个sinc波形组合而成的
-1之间的依赖关系
实验步骤(matlab代码)
第一步,由奈奎斯特准则,假设方波通过一个理想滤波器,来观察各个抽样点的抽样值与输入值的相同情况
%Sampling Frequency & Time Duration
fs=1000;
t=0:1/fs:1;
%Generate rectangular waveform
d=0::1;
x=2*pulstran(t,d,'rectpuls',)-1;
%Generate ideal filter
tx=-1:1/fs:1;
y=sinc(fs*tx);
%Convolution
r=conv(x,y);
%Judge the input &output equivalency
isequal(int8(x),int8(r(1001:2001)));
%drawing
subplot(2,1,1);
plot(t,x);
title('Before Convolution');
subplot(2,1,2);
plot(t,r(1001:2001));
title('After Convolution');
axis tight
第二步,matlab仿真升余弦滤波器,
%Parameters
Delay =3;Fs=8;Fd = 1;
%Generate random data
a=randsrc(20,1,[],1245);
%Consdtruct root-raissd cosine filter with roll-off
[num,den]=rcosine(Fd,Fs,'fir/sqrt',.22,Delay);
%Transmitter filter
[x,tx]=rcosflt(a,Fd,Fs,'filter',num);
%compensate the delay
[z,tz]=rcosflt(x,Fd,Fs,'filter/Fs',num);
%compensate the delay
PropD = Delay *Fd;
ta =[PropD:PropD +20-1]./Fd;
tx=tx +Delay .*Fd;
ta=ta +Delay .*Fd;
%Drawing
stem(ta,a,'kx');hold on;
plot(tx,x,'m-',tz,z,'b-');hold off;
axis([0 30 - ]);
xlabel('Time');ylabel('Amplitude');
第三步,
t=
脉冲成型实验报告 来自淘豆网m.daumloan.com转载请标明出处.