信号与系统实验报告1.docx
《信号与系统实验报告1.docx》由会员分享,可在线阅读,更多相关《信号与系统实验报告1.docx(13页珍藏版)》请在冰豆网上搜索。
信号与系统实验报告1
长江大学电工电子实验中心
电路与系统
(2)实验报告
姓名班级序号指导教师成绩
实验名称:
连续信号的绘制
一、实验目的
1.掌握用Matlab绘制波形图的方法,学会常见波形的绘制。
2.掌握用Matlab编写函数的方法。
3.周期信号与非周期信号的观察。
加深对周期信号的理解。
二、实验内容
1、用MATLAB画出下列信号的波形。
(a)
;
t=linspace(-10,10,400);
f1=u(cos(t));
figure
(1),myplot(t,f1);
xlabel('Time(sec)'),ylabel('f1(t)')
(b)
;
t=linspace(-4,4,400);
f2=abs(t)/2.*(u(t+2)-u(t-2));
figure
(2),myplot(t,f2);
xlabel('Time(sec)'),ylabel('f2(t)')
(c)
;
t=linspace(-1,3,400);
f3=sin(pi*t).*(u(-t)-u(2-t));
figure(3),myplot(t,f3);
xlabel('Time(sec)'),ylabel('f(3)')
(d)
;
t=linspace(-2,2,400);
f4=sign(t).*rectpuls(t,2);
figure(4),myplot(t,f4);
xlabel('Time(sec)'),ylabel('f4(t)')
(e)
;
t=linspace(-1,4,400);
f5=rectpuls(t,6).*tripuls(t-2,4);
figure(5),myplot(t,f5);
xlabel('Time(sec)'),ylabel('f5(t)')
(f)
t=linspace(-3,3,400);
f6=u(2-abs(t)).*sin(pi*t);
figure(6),myplot(t,f6);
xlabel('Time(sec)'),ylabel('f(t)')
2、用基本信号画出图2.1-10中的信号。
1.t=linspace(-1,7,400);
f1=2*rectpuls(t-3,6)+2*rectpuls(t-3,2);
figure
(1),myplot(t,f1);
xlabel('Time(sec)'),ylabel('f1(t)')
2.t=linspace(-1,7,400);
f2=2*rectpuls(t-3,6)+2*tripuls(t-3,2)
figure
(2),myplot(t,f2);
xlabel('Time(sec)'),ylabel('f2(t)')
3.t=linspace(-1,7,400);
f3=6*tripuls(t-3,6)-2*tripuls(t-3,2)
figure(3),myplot(t,f3);
xlabel('Time(sec)'),ylabel('f3(t)')
3用MATALB画出图2.1-11所示信号。
其中,K=10,A=5。
1.t=linspace(-1,4*pi,400);
f1=10*abs(sin(t)).*u(t);
figure
(1),myplot(t,f1);
xlabel('Time(sec)'),ylabel('f1(t)')
2.t=linspace(-0.5,3,400);
f2=5*t.^2.*rectpuls(t-0.5,1)+5*(t-1).^2.*rectpuls(t-1.5,1)+5*(t-2).^2.*rectpuls(t-2.5,1);
figure
(2),myplot(t,f2);
xlabel('Time(sec)'),ylabel('f2(t)')
图2.1-11
4试用Matlab绘制出如下连续时间信号的时域波形,并观察信号是否为周期信号。
若是周期信号,周期是多少?
(a)
(b)
(c)
程序:
t=linspace(-8,8,400);
f=3*sin(0.5*pi*t)+2*sin(pi*t)+sin(2*pi)+sin(2*pi*t);
myplot(t,f);
xlabel('Time(sec)')
[x,y]=ginput
(2)
gtext(['\bfÖÜÆÚ;T=',num2str(x
(2)-x
(1)),'sec'])
三、上机实验的收获与体会
通过进行matlab的上机实验,掌握了使用matlab绘制波形图的方法,能够初步绘制常见的波形图,并且在进行函数的编写上对连续信号与系统的时域分析有了进一步的理解和认识,通过对周期信号与非周期信号的观察进一步加深对周期信号的理解。