- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Matlab Lab1 锦豪 明哲
1.4 Basic problem
Intrduction:y1[n]=f(x1[n]),y2[n]=f(x2[n]),y[n]=f(ax1[n]+bx2[n]),if y[n]=ay1[n]+by2[n], the system is linear. Let x(n)=0(n0),y(n)=0(n0),the system is causal.
(a). The system y[n] = sin((π/2)x[n]) is not linear. Use the signals x1[n] =δ[n] and x2[n] = 2δ[n] to demonstrate how the system violates linearity.
Code:
n=[-10:10];
x1=[zeros(1,10) 1 zeros(1,10)];
x2=[zeros(1,10) 2 zeros(1,10)];
y1=sin((pi/2)*x1);
y2=sin((pi/2)*x2);
y3=y1+y2;
y4=sin((pi/2)*(x1+x2));
subplot(2,1,1),stem(n,y3);
title(the sum of y1[n] and y2[n] when input is x1[n] and x2[n])
subplot(2,1,2),stem(n,y4);
title(the input is x1[n]+x2[n])
Figure:
solution: the pictured above show the sum of y1[n] and y2[n] when the input is x1[n] and x2[n] ,y1[0]+y2[0]=1 ,the picture under show the output when the input is x1[n]+x2[n],y[0]=-1, y1[0]+y2[0]≠y[0].So the system y[n] = sin((π/2)x[n])is not linear
(b). The system y[n] = x[n] + x[n + 1] is not causal. Use the signal x[n] = u[n] to demonstrate this. Define the MATLAB vectors x and y to represent the input on the interval -5 n 9, and the output on the interval -6 n 9, respectively.
Code:
ni=[-5:9];
no=[-6:9];
x1=[zeros(1,5) ones(1,10)];
x2=[0 x1];
x3=[x1,1];
y=x2+x3;
subplot(2,1,1),stem(ni,x1);
title(the input x[n]=u[n])
subplot(2,1,2),stem(no,y);
title(the output y[n])
Figure:
solution: we easily see the y[-1]=1,but x[n]=0 when n=-1.The output of causal system only depends on the moment and the moment before the input to the system.So The system y[n] = x[n] + x[n + 1] is not causal
Intermediate Problems
(c). The system y[n] = log(x[n]) is not stable.
Code:
n=[-10:10];
x=[zeros(1,10) 1 zeros(1,10)];
y=log(x);
subplot(2,1,1),stem(n,x);
title(the input x[n]=u[n])
subplot(2,1,2),stem(n,y);
title(the output y[n])
Figure:
Solution: the input x[n]=u[n],when n=0 ,then x[0]=1,y[0]=0,otherwise x[n]=0,so log(0) tends to minus infinity , y[n] is unbounded. And stable system has the bounded output. So the
您可能关注的文档
最近下载
- 2024年一级建造师考试【市政】思维导图.pdf
- GB50751-2024医用气体工程技术规范.pptx VIP
- 顶尖录音利器SONY PCM-D50中文说明书.pdf
- 包茎包皮过长.pptx VIP
- 中医方法护理课件1.pptx VIP
- 鼻窦炎的中西医诊疗护理课件.pptx VIP
- 高中英语选择性必修第二册:UNIT 5-7-_Project-教学课件.pptx
- Unit 5 First Aid Project 教学设计 2024--2025学年高二英语人教版(2019)选择性必修第二册.docx
- 教科版六年级下册科学全册知识点总结与归纳(2022年新改版).doc
- 清工部《工程做法则例》_图文.pdf
文档评论(0)