- 2
- 0
- 约3.04千字
- 约 9页
- 2016-05-01 发布于江西
- 举报
数字信号处理94257.doc
数字信号处理实验
实验一
1.(1)单边指数脉冲。
Dt=0.0005;
t=0:Dt:0.5;
x=exp(-10*t);
Wmax=2*pi*200;
K=500;k=-K:1:K;W=k*Wmax/K;
X=x*exp(-j*t*W)*Dt;
X=abs(X);
figure(1)
subplot(2,1,1);plot(t,x,b);grid; xlabel(t in sec.);ylabel(x(t))
title(Analog Signal)
subplot(2,1,2);plot(W/(2*pi),X,b);
xlabel(Frequency in Hz);ylabel(X(jf));grid;
title(Continuous-time Fourier Transform)
fs=300;
T=1/fs;
t=0:T:0.5;
xn=exp(-10*t);
%Sample-signal Fourier Transform
Wmax=2*pi*600;
K=500;k=-K:1:K;W=k*Wmax/K;
Xj=xn*exp(-j*t*W);
Xj=abs(Xj);
figure(2)
subplot(2,1,1);stem(t,xn,.);grid;
xlabel(t in sec.);ylabel(x(t))
title(Sample Signal)
subplot(2,1,2);plot(W/(2*pi),Xj,b);grid;
xlabel(Frequency in Hz);ylabel(X(jf));
title(Sample Fourier Transform)
(2).双边指数脉冲。
Dt=0.0005;
t=-0.5:Dt:0.5;
x=4*exp(-10*abs(t));
Wmax=2*pi*50;
K=500;k=-K:1:K;W=k*Wmax/K;
X=x*exp(-j*t*W)*Dt;
X=abs(X);
figure(1)
subplot(2,1,1);plot(t,x,b);grid;
xlabel(t in sec.);ylabel(x(t))
title(Analog Signal)
subplot(2,1,2);plot(W/(2*pi),X,b);
xlabel(Frequency in Hz);ylabel(X(jf));grid;
title(Continuous-time Fourier Transform)
fs=50;
T=1/fs;
t=-0.5:T:0.5;
xn=4*exp(-10*abs(t));
%Sample-signal Fourier Transform
Wmax=2*pi*100;
K=500;k=-K:1:K;W=k*Wmax/K;
Xj=xn*exp(-j*t*W);
Xj=abs(Xj);
figure(2)%
subplot(2,1,1);stem(t,xn,.);grid;
xlabel(t in sec.);ylabel(x(t))
title(Sample Signal)
subplot(2,1,2);plot(W/(2*pi),Xj,b);grid;
xlabel(Frequency in Hz);ylabel(X(jf));
title(Sample Fourier Transform)
(4).抽样脉冲
Dt=0.005;
t=-10:Dt:10;
x=sinc(t/pi);
%Continuous-time Fourier Transform
Wmax=2*pi*1;
K=500;k=-K:1:K;W=k*Wmax/K;
X=x*exp(-j*t*W)*Dt;
X=abs(X);
figure(1)
subplot(2,1,1);plot(t,x,b);grid;
xlabel(t in sec.);ylabel(x(t))
title(Analog Signal)
subplot(2,1,2);plot(W/(2*pi),X,b);
xlabel(Frequency in Hz);ylabel(X(jf));grid;
title(Continuous-time Fourier Transform)
fs=2;
T=1/fs;
t=-10:T:10;
xn=sinc(t/pi);
Wmax=2*pi*5;
K=500;k=-K:1:K;W=k*Wmax/K;
Xj=xn*e
原创力文档

文档评论(0)