1 / 18
文档名称:

信号实验(信号与系统).doc

格式:doc   页数:18页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

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

分享

预览

信号实验(信号与系统).doc

上传人:xxj16588 2016/3/6 文件大小:0 KB

下载得到文件列表

信号实验(信号与系统).doc

文档介绍

文档介绍:实验一信号的可视化实验[ 实验目的] Matlab 实现时间信号的表示及可视化的方法,理解信号的时域运算、时域变换及 MATLAB 实现。 MATLAB 分析常用时间信号。[ 实验内容]。①阶跃函数: 0 0 ( ) 1 0 ttt ???????,指数函数: ( ) 0 t x t e t ?? ?②单位抽样序列: ????0 1)(n?0 0??n n ,单位阶跃序列: 1 ( ) 0 u n ????0 0??n n 2 .已知某信号的波形如下图所示,用 Matlab 绘出满足下列要求的信号波形,并指明变换的实质。①( 2) f t ?②( ) f t ?③(1 2 ) f t ?④1 ( 1) 2 f t ? 0 [ ] [0 1 2 1 2 1 3 4 1] n x n ??? ???,绘制满足下列要求的信号波形。①[ 2] x n ?②[ ] x n ?③[ / 2] x n ④[3 ] x n [ 仿真程序****题一( 1) %阶跃函数,定义有不同的方法 syms t;hanshu=sym( 'jieyue(t)' ); figure(2); subplot(1,2,1); ezplot(hanshu,[-5,5]); %还可以用数值进行绘图 t=-5::5; hanshu=(t>0); subplot(1,2,2); stairs(t,hanshu); %说明:stairs 指令用于绘制不连续的阶梯信号 axis([-5,5,-,]); title( '阶跃函数'****题一( 2) %单边指数信号 syms t;zhishu=exp(-t); figure(3); ezplot(zhishu,[0,5]); %还可以用数值进行绘图,这里从略****题一( 3,4 ) %单位抽样序列,单位阶跃序列 n1=input( '输入序列的起点 n1=' );%以交互方式输入序列的起点 n1n2=input( '输入序列的终点 n2=' );%以交互方式输入序列的终点 n2n=n1:n2;k=length(n); %确定 n向量及其元素的个数 x1=zeros(1,k);x1(1,-n1+1)=1; %实现单位样值序列 figure(4); subplot(1,2,1);stem(n,x1, 'filled' )%绘制单位样值序列的图形 x2=zeros(1,k);x2(1,-n1+1:n2-n1+1)=1; %实现单位阶跃序列 subplot(1,2,2);stem(n,x2, 'filled' )%绘制单位阶跃序列的图形****题二 syms t;xinhao=sym( 'xiti5(t)' );%定义信号,先用函数描述了信号 figure(5); subplot(2,3,1); ezplot(xinhao); axis([-2,5,-,]); line([-2 5],[0 0]); title( '输入信号'); xinhao2=subs(xinhao,t,t-2); %信号的移位 subplot(2,3,2); ezplot(xinhao2); axis([-2,5,-,]); line([-2 5],[0 0]); title( '信号移位'); xinhao3=subs(xinhao,t,-t); %信号的反转 subplot(2,3,3); ezplot(xinhao3); axis([-2,5,-,]); line([-2 5],[0 0]); title( '信号反转'); xinhao4=subs(xinhao,t,1-2*t); %信号的综合变换 subplot(2,3,4); ezplot(xinhao4); axis([-2,5,-,]); line([-2 5],[0 0]); title( ''); xinhao5=subs(xinhao,t,t/2+1); %信号的综合变换 subplot(2,3,5); ezplot(xinhao5); axis([-2,5,-,]); line([-2 5],[0 0]); title( ''****题三 n=0:8; x=[0 12-1-21344]; figure(6);subplot(2,3,1); %序列 x[n] stem(n,x, 'filled' );axis([-8,18,-3,5]);title( 'x[n]' ); n0=input( '请输入移位量 n0=' );