海南大学信号与系统实验报告 联系客服

发布时间 : 星期二 文章海南大学信号与系统实验报告更新完毕开始阅读a6189518c5da50e2524d7f50

7-5

syms t w;

g=sym('Heaviside(t+1)-Heaviside(t-1)'); subplot(2,2,1); ezplot(g,[-2,2]); title('门函数g'); hold on;

gw=fourier(g,t,w);

ggw=maple('convert',gw,'piecewise'); subplot(2,2,3); ezplot(abs(ggw));

title('门函数g的傅立叶变换'); F=2*sin(w)/w; subplot(2,2,2); ezplot(F);

title('抽样信号函数F') f=fourier(F); subplot(2,2,4); ezplot(f);

title('抽样信号函数F的傅立叶变换');

7-6 syms w; sa=sin(w)/w; subplot(2,2,1); ezplot(sa); F=fourier(sa); subplot(2,2,2); ezplot(F);

J=3*sin(3*w)/w; subplot(2,2,3);

ezplot(J);axis([-6 6 -6 10]); F2=fourier(J); subplot(2,2,4); ezplot(F2);

8-1

t=0:0.001:0.2; y=sin(1*pi*10*t); subplot(211); plot(t,y);

xlabel('t 单位:s','Fontsize',8); title('续间号f(t)'); subplot(212); plot(t,y,'b:'); hold on;

t2=0:1/60:0.2;

y2=sin(1*pi*10*t2); stem(t2,y2);

xlabel('t 位:s','Fontsize',8); title('样号fs(t)'); hold off;

8-2

t=0:0.01:40; y=sin(2/3*pi*t); subplot(121); plot(t,y);

axis([0 6 -1.1 1.1]);

xlabel('t 位:s','Fontsize',8); title('f(t)');

line([0 6],[0 0],'color',[0 0 0]); N=300; W=2*pi*10; k=-N:N; w=k*W/N;

Y=0.01*y*exp(-j*t'*w); Y=abs(Y); subplot(122); plot(w/pi,Y)

axis([-2.5,2.5,0,pi*7+0.2]); title('F(j\\omega)'); xlabel('\\omega 位:pi');