资源描述:
《浙江农林大学信号与系统实验3》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、浙江林学院信息工程学院信号与系统实验(三)一、验证性实验1)实现两个连续时间信号的相加clearallt=0:0.0001:3;b=3;t0=1;u=stepfun(t,t0);n=length(t);fori=1:nu(i)=b*u(i)*(t(i)-t0);endy=sin(2*pi*t);f=u+y;subplot(3,1,1);plot(t,u);title('斜坡信号u(t)');xlabel('时间t');ylabel('幅值u(t)');subplot(3,1,2);plot(t,y);title('正弦信号y(t)');xlabel(
2、'时间t');ylabel('幅值y(t)');subplot(3,1,3);plot(t,f);title('连续时间信号的相加');xlabel('时间t');ylabel('幅值f(t)');2)实现两个连续时间信号的相乘clearallt=0:0.0001:5;b=3;t0=1;u=stepfun(t,t0);n=length(t);fori=1:nu(i)=b*u(i)*(t(i)-t0);endy=sin(2*pi*t);f=u.*y;subplot(3,1,1);plot(t,u);title('斜坡信号u(t)');xlabel('时
3、间t');ylabel('幅值u(t)');subplot(3,1,2);plot(t,y);title('正弦信号y(t)');xlabel('时间t');ylabel('幅值y(t)');subplot(3,1,3);plot(t,f);title('连续时间信号的相乘');xlabel('时间t');ylabel('幅值f(t)');3)实现连续时间信号的移位clearallt=0:0.0001:2;y=sin(2*pi*(t));y1=sin(2*pi*(t-0.2));plot(t,y,'-',t,y1,'--');title('f(t)'
4、);xlabel('t');ylabel('f(t)');HightideagainstCCPbloodyanTomb,CommunistPartymembersandpartoftheexposedTombareavacatedbyprogressiveyouth.IvisitedinBeijingin1985whenitwasoldundergroundcomrade,sisterofYaoZhiyingYaoMuzheng(thenDeputyDirectoroftheexternaltrademagazineforthepromotionof
5、internationaltrade,deshengmenWai,theReed浙江林学院信息工程学院信号与系统实验(三)4)连续时间信号的翻转clearallt=0:0.02:1;t1=-1:0.02:0;g1=3*t;g2=3*(-t1);gridon;plot(t,g1,'--',t1,g2);title('连续时间信号反折');xlabel('t');ylabel('g(t)');5)连续时间信号的倒相clearallt=-1:0.02:1;g1=3.*t.*t;g2=-3.*t.*t;gridon;plot(t,g1,'-',t,g2,'-
6、-');title('连续时间信号倒相');xlabel('t');ylabel('g(t)');6)连续时间信号的尺度变换clearallt=0:0.001:1;a=2;y=sin(2*pi*t);y1=sin(2*a*pi*t);subplot(2,1,1);plot(t,y);title('尺度变换');xlabel('t');ylabel('y(t)');subplot(2,1,2);plot(t,y1);xlabel('t');ylabel('y1(t)');7)综合变换funtion[x,n]=Heaviside(n0,n1,n2)n=[
7、n1:n2];x=[(n-n0)==0];clearallsymstf=sym('(t/2+1)*(heaviside(t+2)-heaviside(t-2))');subplot(2,3,1);ezplot(f,[-3,3]);y1=subs(f,t,t+2);subplot(2,3,2);ezplot(y1,[-5,1]);HightideagainstCCPbloodyanTomb,CommunistPartymembersandpartoftheexposedTombareavacatedbyprogressiveyouth.Ivisited
8、inBeijingin1985whenitwasoldundergroundcomrade,sisterof