(完整word版)连续时间信号分析答案

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

实验一 连续时间信号分析

一、实验目的

(一)掌握使用Matlab 表示连续时间信号

1、学会运用Matlab 表示常用连续时间信号的方法

2、观察并熟悉常用信号的波形和特性

(二)掌握使用Matlab 进行连续时间信号的相关运算

1、学会运用Matlab 进行连续时间信号的时移、反褶和尺度变换

2、学会运用Matlab 进行连续时间信号微分、积分运算

3、学会运用Matlab 进行连续时间信号相加、相乘运算

4、学会运用Matlab 进行连续时间信号卷积运算

二、实验条件

一台电脑、winXP 系统、matlab7.0软件

三、实验内容

1、利用Matlab 命令画出下列连续信号的波形图。 (1))4/3t (2cos π+ 代码:

clear all;close all;clc; K=2;a=3; t=0:0.01:3; ft=K*cos(a*t+pi/4); plot(t,ft),grid on axis([-5,5,-2.2,2.2]) title('2cos(3t+4π)')

-5

-4

-3

-2

-1

1

2

3

4

5

-2-1.5-1-0.500.511.5

22cos(3t+4π)

(2)

)t (u )e 2(t

-- -3

-2-10123

-3

-2

-1

1

2

3

指数信号与阶跃信号的乘积

代码: 函数文件: function f=uCT(t) f=(t>=0); 命令文件: clear all;close all;clc; a=-1; t=-5:0.01:5;

ft=(2-exp(a*t)).*uCT(t); %y=2-exp(a*t); %plot(t,y),grid on plot(t,ft),grid on axis([-3,3,-3,3]);

title('指数信号与阶跃信号的乘积') (3))]2()(u )][t (cos 1[--+t u t π

-3

-2-10123

-3-2

-1

1

2

3

余弦信号与阶跃信号的乘积

代码: 函数文件: function f=uCT(t) f=(t>=0); 代码文件: clear all;close all;clc; t=-5:0.01:5;

ft=(uCT(t)-uCT(t-2)).*(1+cos(pi*t)); %(1+cos(pi*t))* plot(t,ft),grid on axis([-3,3,-3,3]);

title('余弦信号与阶跃信号的乘积')

2、利用Matlab 命令画出复信号)4/t (j 2e )t (f π+=的实部、虚部、模和辐角。

解: 图

-5

-4

-3

-2

-1

1

2

3

4

5

-5-4-3-2-101234

5f(t)=2exp(j*(t+π/4))

代码:

clear all; close all;clc; a=1; t=-10:0.01:10; ft=a*exp(j*(t+pi/4)); r=real(ft); im=imag(ft); ab=abs(ft);

an=angle(ft);

plot(t,r,'r',t,im,'b',t,ab,'g',t,an,'m'),grid on axis([-5,5,-5,5]);

title('f(t)=2exp(j*(t+π/4))')

3、已知信号的波形(课本P13例题1-1),画出()

()()()2332----t f t f t f t f ,,,的波形图。

解:-2024

-1

01

2

f1(t)

-2024

-1

1

2

f2(t)

-2024

-1

01

2f3(t)

-2024

-1

1

2f4(t)

代码:

clear all;close all;clc; t=-5:0.01:5; y1=funct1(t-2);

y2=funct1(3*t);y3=funct1(-t);y4=funct1(-3*t-2); subplot(2,2,1);plot(t,y1);

axis([-3,5,-1,2]);title('f1(t)'),grid on; subplot(2,2,2);plot(t,y2);

axis([-3,5,-1,2]);title('f2(t)'),grid on; subplot(2,2,3);plot(t,y3);

axis([-3,5,-1,2]);title('f3(t)'),grid on; subplot(2,2,4);plot(t,y4);

axis([-3,5,-1,2]);title('f4(t)'),grid on; 4、使用微分命令求xsinxlnx y

=关于变量x 的一阶导数;使用积分命令计算不定积

分 dx x ax x ⎰⎪⎪⎭

⎫ ⎝⎛+-22

5,定积分()dx x xe x ⎰+1

021。

解: 代码:

clear all;close all;clc; syms x;

y=x*sin(x)*log(x); dy=diff(y,'x',1) z=x^5-2*x*x+sqrt(x)/2; lz=int(z,'x')

w=x*exp(x)/[(1+x)^2]; lw=int(w,'x',0,1)

dy=sin(x)*log(x)+x*cos(x)*log(x)+sin(x); lz=1/6*x^6-2/3*x^3+1/3*x^(3/2) lw=1/2*exp(1)-1

相关文档
最新文档