




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1. 设某LTI系统的 hn n 5 ,输入 xn un un 5 ,求系统输出yn xn* hn :主程序如下: n=-5:20; h=delta(n-5);x=stepseq(0,-5,20)-stepseq(5,-5,20);y,ny=conv_m(x,n,h,n); subplot(2,2,1);stem(n,x);title(xn );xlabel( n );axis(-5 20 0 1.2);grid on; subplot(2,2,2);stem(n,h);title(hn );xlabel( n );axis(-5 20 0 1.2);grid on; subplot(2,2,
2、3);stem(ny,y);title( yn ); xlabel( n );axis(-5 20 0 1.2);grid on; Stepseq.m 的源程序如下: function x,n=stepseq(n0,n1,n2);if nargin =3disp( Usage:Y=stepseq(n0,n1,n2) );elseif (n0n2)|(n1n2)error( arguments must satisfy n1=n0=0;conv_m.m的源程序如下:function y,ny=conv_m(x,nx,h,nh)if nargin=4disp( Usage:Y=conv_m(x,n
3、x,h,nh) );return ;end; nyb=nx(1)+nh(1); nye=nx(length(x)+nh(length(h); ny=nyb:nye;y=conv(x,h);思考题:若 yn xn* n n0, 试写出 yn 与xn的关系,并对 MATLAB 的仿真结果。解:因为 n n0 函数是延时器, 所以yn=xn*n n0 =x n- n0 。n0n52. 设某线性时不变系统的 hn=0 其它10n5输入信号为 xn= 0 其它求输出: a : y n xn* hn;1b: y n xn* hn 5 (1)主程序如下: n=-5:20;u1=stepseq(0,-5,20
4、);u2=stepseq(6,-5,20); x=u1-u2;Input Sequence );Inpulse Response );h=n.*x; subplot(3,1,1);stem(n,x);axis(-5 20 0 2);title( ylabel( xn );subplot(3,1,2);stem(n,h);axis(-5 20 0 6);title( ylabel( hn );Output Sequence );xlabel( n );y1,ny=conv_m(x,n,h,n); subplot(3,1,3);stem(ny,y1);title( ylabel( y_1n );
5、Stepseq.m 的源程序如下:function x,n=stepseq(n0,n1,n2);if nargin =3disp( Usage:Y=stepseq(n0,n1,n2) );elseif (n0n2)|(n1n2)error(arguments must satisfy n1=n0=0; conv_m.m的源程序如下: function y,cy=conv_m(x,nx,h,nh) if nargin=4disp( Usage:Y=conv_m(x,nx,h,nh) ); return ;end; nyb=nx(1)+nh(1);nye=nx(length(x)+nh(lengt
6、h(x); ny=nyb:nye;y=conv(x,h);(2)主程序如下: n=-10:20; u1=stepseq(0,-10,20);u2=stepseq(6,-10,20); x=u1-u2;u3=stepseq(-5,-10,20);u4=stepseq(1,-10,20); x1=u3-u4;h=(n+5).*x1;Input sequence );Inpulse Response );subplot(3,1,1);stem(n,x);axis(-10 20 0 2);title( ylabel( xn );subplot(3,1,2);stem(n,h);axis(-10 20
7、0 6);title( ylabel( hn+5 );Output Sequence );xlabel( n );y2,ny=conv_m(x,n,h,n); subplot(3,1,3);stem(ny,y2);title( ylabel( y 2n );思考题:若 yn xn* hn,y1n xn n1* hn n2 ,试写出 y1n与yn的关系2. 设 hn (0.9)n un , 输 入 xn un un 10 , 求 系 统 输 出yn xn* hn:n=-5:50;u1=stepseq(0,-5,50);u2=stepseq(10,-5,50);%input xnx=u1-u2;%
8、impluse response hnh=(0.9).n).*u1;subplot(3,1,1);stem(n,x);axis(-5 20 0 2);title( ylabel( xn );subplot(3,1,2);stem(n,h);axis(-5 20 0 6);title(%u1=un;u2=un-10Input Sequence );Inpulse Response );ylabel( hn );%output response y,ny=conv_m(x,n,h,n);subplot(3,1,3);stem(ny,y);title( ylabel( yn );Output Seq
9、uence );xlabel( n );思考题:在此问题中 hn 为无限长序列,在计算卷积和时应如何处理?解:取尽可能多的包含能量分布集中的具有代表性的点4 某离散时间线性时不变系统的差分方程为: yn 0.8n 1 xna. 计算 n 10 : 50时的系统冲激响应 hnb. 计算 n 10:50 时的系统阶跃响应 sna=1,-0.8;b=1;n=-10:50;x=impseq(0,-10,50); h=filter(b,a,x);subplot(2,1,1);stem(n,h);title( Inpulse Response );xlabel( n );ylabel( hn ); x=stepseq(0,-10,50);s=filter(b,a,x);subplot(2,1,2);stem(n,s);title( Step Response );xlabel( n );ylabel( sn ); impseq.m 的源程序如下:function x,n=impseq(n0,n1,n2)if nargin=3disp( Usage:Y=impse
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中医健康教育管理制度
- 中职团委工作管理制度
- 企业生产夜班管理制度
- 严格职业健康管理制度
- 企业财务文档管理制度
- 人工智能技术在中医行业中的应用潜力评估
- 人体健康中心管理制度
- 仪器清洁消毒管理制度
- 三基培训经费管理制度
- 休息车间现场管理制度
- 带电作业安全课件
- 白蚁防治文保施工方案
- 腹部超声检查规范指南
- 2025年中国国际技术智力合作集团有限公司招聘笔试参考题库含答案解析
- 食品安全自查、从业人员健康管理、进货查验记录、食品安全事故处置等保证食品安全的规章制度
- 国家保密知识培训课件
- 新22J01 工程做法图集
- 社交媒体表情符号分析
- AI在市场营销的智能推广策略
- 2025年1月国家开放大学汉语言本科《古代小说戏曲专题》期末纸质考试试题及答案
- 农村文化产业发展与市场开拓策略
评论
0/150
提交评论