1 / 3
文档名称:

离散线性时不变系统分析实验报告.docx

格式:docx   大小:17KB   页数:3页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

离散线性时不变系统分析实验报告.docx

上传人:fangjinyan2017001 2022/7/3 文件大小:17 KB

下载得到文件列表

离散线性时不变系统分析实验报告.docx

文档介绍

文档介绍:离散线性时不变系统分析实验报告
为,05口0,nnhnothers,输入信号为
1,05口0,nxnothers, (1)求输出 1□□口ynxnhn
主程序如下:
n=[-5:20]离散线性时不变系统分析实验报告
为,05口0,nnhnothers,输入信号为
1,05口0,nxnothers, (1)求输出 1□□口ynxnhn
主程序如下:
n=[-5:20];u1=stepseq(0,-5,20);u2=stepseq(6,-5,20);x=u1- u2;h=n.*x;subplot(3,1,1);stem(n,x);axis([- 52002]);title("InputSequence");ylabel("x[n]");subplot(3,1,2 );stem(n,h);axis([- 52006]);title("InpulseResponse");ylabel("h[n]");[y1,ny]=con v_m(x,n,h,n);subplot(3,1,3);stem(ny,y1);title("OutputSequen ce");xlabel("n");ylabel("y_1[n]");:
function[x,n]=stepseq(n0,n1,n2);ifnargin~=3disp("Usage:Y =stepseq(n0,n1,n2)");elseif((n0n2)|(n1>n2));endn=[n1:n2];x= [(n-n0)>=0]; 的源程序如下:
function[y,cy]=conv_m(x,nx,h,nh)ifnargin~=4disp("Usage:Y =conv_m(x,nx,h,nh)");return;end;nyb=nx(1)+nh(1);nye=nx(leng th(x))+nh(length(x));ny=[nyb:nye];y=conv(x,h);
⑵ 求输出 2[][][5]ynxnhnn=-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;subplot(3,1,1);stem(n,x);axis([- 102002]);title("Inputsequence");ylabel("x[n]");subplot(3,1, 2);stem(n,h);axis([- 102006]);title("InpulseResponse");ylabel("h[n+5]”);[y2,ny]= conv_m(x,n,h,n);subplot(3,1,3);stem(ny,y2);title("OutputSeq uence");xlabel("n");ylabel("y_2[n]");
()[]nhnun,输入□口[10]xnunun,求系统输
出口口[]ynxnhn 。
n=-5:50;u1=stepseq(0,-5,50);u2=st