欢迎来到天天文库
浏览记录
ID:6299429
大小:66.00 KB
页数:5页
时间:2018-01-09
《信号系统第五章实验卷积的实现》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、1.>>n=[2:1:10];>>x=n;>>stem(n,x,'filled');>>xlabel('n');>>ylabel('x(n)');>>title('RampSequence');>>grid;2.>>n=0:40;>>subplot(2,1,1);>>stem(n,cos(n*pi/8),'filled');>>title('cos(n*pi/8)');>>subplot(2,1,2);>>stem(n,cos(2*n),'filled');>>title('cos(2*n)');3.>>n=0:15;>>subplot(2,
2、1,1);>>x=(5/4).^n;>>stem(n,x,'filled');xlabel('n');title('x1(n)')>>subplot(2,1,2)>>x=(-3/4).^n;>>stem(n,x,'filled');xlabel('n');title('x2(n)')>>4.h=[111];y=conv(x,h);subplot(1,3,1);stem(0:length(x)-1,x,'filled');title('x(n)');xlabel('n');>>subplot(1,3,2);>>stem(0:length(h)-
3、1,h,'filled');title('h(n)');xlabel('n');>>subplot(1,3,2);stem(0:length(h)-1,h,'filled');title('h(n)');xlabel('n');>>subplot(1,3,3);>>stem(0:length(y)-1,y,'filled');title('x(n)与h(n)的卷积和y(n)');xlabel('n');>>5.>>a=[2-21];>>b=[132];>>n=30n=30>>impz(b,a,n);>>
此文档下载收益归作者所有