Loading... 编写程序,实现下列信号序列: (1)x(n)= δ(n+3)+2δ(n-4),-5<n<5 matlab程序: ``` n1=-5; n2=5; n01=-2; n02=4; n=n1:n2; x1=[(n-n01)==0]; x2=2.*[(n-n02)==0]; x3=x1+x2; subplot(3,1,1); stem(n,x1,'filled','p'); axis([n1,n2,1.1*min(x1),1.1*max(x1)]); x1=[(n-n01)==0]; x2=2.*[(n-n02)==0]; x3=x1+x2; subplot(3,1,1); stem(n,x1,'filled','p'); axis([n1,n2,1.1*min(x1),1.1*max(x1)]); ylabel('\delta(n+2)'); subplot(3,1,2); stem(n,x2,'filled','p'); axis([n1,n2,1.1*min(x2),1.1*max(x2)]); ylabel('\delta(n-4)'); subplot(3,1,3); stem(n,x3,'filled','p'); axis([n1,n2,1.1*min(x3),1.1*max(x3)]) ylabel('\delta(n+2)+\delta(n-4)'); ``` 最后修改:2023 年 03 月 19 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏
此处评论已关闭