资源描述:
《华南理工大学信号与系统实验报告材料.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ExperimentExportName:StudentNo:Institute:Dec26,2011ExperimentPurposes1.BefamiliarwiththesoftwareEnvironmentandProgrammingflowinMATLAB5.3.2.Learnhowtodrawthesignalwaveformanddeterminethesignalproperties.3.Calculatetheconvolution,frequencyresponseandsystemou
2、tputbyusingthefunctions:conv,freqz,freqsandfilter.ExperimentContents实验项目一:MATLAB编程基础及典型实例① 画出离散时间正弦信号并确定基波周期(注:pi 表示圆周率)1 x1[n]=sin(pi*4/4)*cos(pi*n/4)2 x2[n]=cos(pi*n/4)*cos(pi*n/4)3 x3[n]=sin(pi*n/4)*cos(pi*n/8)programformatlabn=0:31;x1=sin(pi*n/4).*
3、cos(pi*n/4);x2=cos(pi*n/4).*cos(pi*n/4);x3=sin(pi*n/4).*cos(pi*n/8);subplot(3,1,1);stem(n,x1);title('x1');subplot(3,1,2);stem(n,x2);title('x2');subplot(3,1,3);stem(n,x3);title('x3');gridon; Conclusion:Thesesignalsisperiodic,thefirstandsecondsignal’sperioda
4、re4.Thethirdsignal’speriodis16. ② 离散时间系统性质:离散时间系统往往是用几个性质来表征,如线性、时不变性、稳定性、因果性及可逆性等。MATLAB可用来构成一些反例证明某些性质不满足。(a)系统y[n]=sin((pi/2)x[n])不是线性的。利用信号x1[n]=δ[n]和x2=2δ[n]来证明该系统不满足线性性质。(b)系统y[n]=x[n]+x[n+1]不是因果的。利用信号x[n]=u[n]证明它。定义向量x和y分别代表在-5<=n<=9上的输入和在-6<=n<=9
5、上的输出。Programformatlab1.4(a)n=[0:20];x1=[1zeros(1,20)];x2=2*x1;x=x1+x2;y1=sin((pi/2)*x1);y2=sin((pi/2)*x2);y=sin((pi/2)*x);figure(1),stem(n,y1)figure(2),stem(n,y2)figure(3),stem(n,y)1.4(b)x1=[zeros(1,5)ones(1,10)];x2=[zeros(1,4)ones(1,11)];y=x1+x2;n1=[-5:9]
6、;n2=[-5:9];figure(1),stem(n1,x1)figure(2),stem(n2,y)Conclusion:y[n]=sin((pi/2)x[n])isnotlinearandy[n]=x[n]+x[n+1]isnotcuasalandtheresultisshowninthechartabove. 卷积计算:有限长信 和 (1) 用解析方法计算y[n]=x[n]*h[n](2) 用conv计算y。步骤:a.定义0≤n≤5区间上的向量x b.定义0≤n≤5区间上的向量hc
7、.用y=conv(x,h)计算yd.构造y的标号向量nye.用stem(ny,y)画出结果f.验证此结果与解析导出的结果是否一致?Programformatlab N=6;M=6;L=N+M-1;x=[1,1,1,1,1,1];h=[0,1,2,3,4,5];y=conv(x,h);nx=0:N-1;nh=0:M-1;ny=0:L-1;stem(ny,y);xlabel('n');xlabel('y');Conclusion:y=ans=3 andtheresultisshowinthepictureabo
8、ve.实验项目2一、 实验项目名称:周期信号傅里叶分析及其MATLAB实现 二、上机实验题目:特征函数在LTI系统傅里叶分析中的应用1.实验项目的目的和任务:掌握特征函数在系统响应分析中的作用,正确理解滤波的概念。2. 上机实验容:1 函数Filter、Freqz和Freqs的使用:2.2节(g)、3.2节、4.1节2 计算离散时间傅里叶级数:3.1节3 LTI系统的特征函数:3.4节(a),(b