收藏 分享(赏)

信号与系统实验教程(只有答案).doc

上传人:精品资料 文档编号:8447470 上传时间:2019-06-27 格式:DOC 页数:56 大小:823KB
下载 相关 举报
信号与系统实验教程(只有答案).doc_第1页
第1页 / 共56页
信号与系统实验教程(只有答案).doc_第2页
第2页 / 共56页
信号与系统实验教程(只有答案).doc_第3页
第3页 / 共56页
信号与系统实验教程(只有答案).doc_第4页
第4页 / 共56页
信号与系统实验教程(只有答案).doc_第5页
第5页 / 共56页
点击查看更多>>
资源描述

1、信 号 与 系 统实 验 教 程(只有答案)( 实 验 报 告 )这么玩!目录实验一 信号与系统的时域分析 2三、实验内容及 步骤 2实验二 连续时间信号的频域分析 .14三、实验内容及步骤 14实验三 连续时间 LTI 系统的频域分析 35三、实验内容及步骤 35实验四 通信系统仿真 41三、实验内容及步骤 41实验五 连续时间 LTI 系统的复频域分析 51三、实验内容及步骤 51实验一 信号与系统的时域分析三、实验内容及步骤实验前,必须首先阅读本实验原理,读懂所给出的全部范例程序。实验开始时,先在计算机上运行这些范例程序,观察所得到的信号的波形图。并结合范例程序应该完成的工作,进一步分析

2、程序中各个语句的作用,从而真正理解这些程序。实验前,一定要针对下面的实验项目做好相应的实验准备工作,包括事先编写好相应的实验程序等事项。Q1-1:修改程序 Program1_1,将 dt 改为 0.2,再执行该程序,保存图形,看看所得图形的效果如何? dt = 0.01 时的信号波形 dt = 0.2 时的信号波形这两幅图形有什么区别,哪一幅图形看起来与实际信号波形更像?答:Q1-2:修改程序 Program1_1,并以 Q1_2 为文件名存盘,产生实指数信号 x(t)=e-0.5t。 要求在图形中加上网格线,并使用函数 axis()控制图形的时间范围在 02 秒之间。然后执行该程序,保存所的

3、图形。修改 Program1_1 后得到的程序 Q1_2 如下: 信号 x(t)=e-0.5t 的波形图clear, % Clear all variablesclose all, % Close all figure windowsdt = 0.2; % Specify the step of time variablet = -2:dt:2; % Specify the interval of timex = exp(-0.5*t); % Generate the signalplot(t,x) grid on;axis (0 2 0 1 ) title(Sinusoidal signal

4、 x(t)xlabel(Time t (sec)Q1-3:修改程序 Program1_1,并以 Q1_3 为文件名存盘,使之能够仿真从键盘上任意输入的一个连续时间信号,并利用该程序仿真信号 x(t)=e-2t。修改 Program1_1 后得到的程序 Q1_3 如下: 信号 x(t)=e-2t 的波形图clear, close all, dt = 0.2; t = -2:dt:2; x=input(Input x(t):);plot(t,x) grid on;axis (0 2 -1 1 ) title(Sinusoidal signal x(t)xlabel(Time t (sec)Q1-4

5、:将实验原理中所给的单位冲激信号和单位阶跃信号的函数文件在 MATLAB 文件编辑器中编写好,并分别以文件名 delta 和 u 存入 work 文件夹中以便于使用。抄写函数文件 delta 如下: 抄 写函数文件 u 如下:function y = delta(t) % Unit step functiondt = 0.01; function y = u(t)y = (u(t)-u(t-dt)/dt; y = (t=0); % y = 1 for t 0, else y = 0Q1-5:修改程序 Program1_4,并以 Q1_5 为文件名存盘,利用 axis()函数,将图形窗口的横坐标

6、范围改为-2n5,纵坐标范围改为-1.5 x 1.5。修改 Program1_4 后得到的程序 Q1_5 如下: 信号的波形图clear, close all, n = -5:5; x = zeros(1,4), 0.1, 1.1, -1.2, 0, 1.3, zeros(1,2); stem (n,x,.) grid on,axis(-2 5 -1.5 1.5);title (A discrete-time sequence xn)xlabel (Time index n)Q1-6:仿照前面的示例程序的编写方法,编写一个 MATLAB 程序,以 Q1_6 为文件名存盘,使之能够在同一个图形窗

7、口中的两个子图中分别绘制信号 xn=0.5|n| 和 x(t)=cos(2t)u(t)-u(t-3)。要求选择的时间窗能够表现出信号的主要部分(或特征) 。编写的程序 Q1_6 如下: 信号 xn=0.5|n| 的波形图和信号 x(t)=cos(2t)u(t)-u(t-3)的波形图clear,close all,t = -1:0.01:4;xt = cos(2*pi*t).*(u(t)-u(t-3); n=-5:5; xn=(0.5).abs(n); subplot(211)plot(t,xt) grid on,title (Original signal x(t)subplot(212)st

8、em(n,xn,.) grid on,title (Original signal x(n)xlabel (Time t (sec)Q1-7:根据示例程序的编程方法,编写一个 MATLAB 程序,以 Q1_7 为文件名存盘,由给定信号 x(t) = e-0.5tu(t) 求信号 y(t) = x(1.5t+3),并绘制出 x(t) 和 y(t)的图形。编写的程序 Q1_7 如下:编写产生 x(t)的函数文件 x.mfunction y=x(t)y=exp(-0.5*t).*u(t);clear,close all,t = -3:0.01:4;xt = x(t); % Generate the

9、original signal x(t)yt=x(1.5*t+3); subplot(211)plot(t,xt) % Plot x(t)grid on,title (Original signal x(t)subplot(212)plot(t,yt) % Plot x(t)grid on,title (Original signal y(t)xlabel (Time t (sec)信号 x(t)的波形图 信号 y(t) = x(1.5t+3) 的波形图Q1-8:给定一个离散时间信号 xn = un un-8,仿照示例程序 Program1_5,编写程序Q1_8,产生 xn的左移序列 x1n

10、= xn+6和右移序列 x2n = xn-6,并在同一个图形窗口的三个子图中分别绘制这三个序列的图形。编写的程序 Q1_8 如下:编写产生 x(t)的函数文件 xx.mfunction y=xx(n)y=u(n)-u(n-8);clear,close all,n = -10:15;x =xx(n); % Generate the original signal x(n)x1 = xx(n+6); % Shift x(t) to the left by 2 second to get x1(n+6)x2 =xx(n-6); % Shift x(t) to the right by 2 secon

11、d to get x2(n-6)subplot(311)stem(n,x,.) % Plot x(t)grid on,title (Original signal x(n)subplot (312)stem (n,x1,.) % Plot x1(t)grid on,title (Left shifted version of x(n)subplot (313)stem (n,x2,.) % Plot x2(t)grid on,title (Right shifted version of x(n)xlabel (Time t (sec)信号波形图Q1-9:编写程序 Q1_9,使之能够接受以键盘

12、方式输入的定义在不同时间段的两个不同连续时间信号并完成卷积运算,分别绘制这两个信号及其卷积的结果的图形,图形按照 22分割成四个子图。编写的程序 Q1_9 如下:clear;close all;dt = 0.01;t0=input(Input first signal t0:);t1=input(Input first first signal t1:);tx = t0:dt:t1;x = input(Input first signal variable(tx) :);t2=input(Input second signal t0:);t3=input(Input second signal

13、 t1:);th=t2:dt:t3;h = input(Input second signal variable(th) :)y = dt*conv(x,h); % Compute the convolution of x(t) and h(t)subplot(221)plot(tx,x), grid on, title(Signal x(t)xlabel(Time t sec)subplot(222)plot(th,h), grid on, title(Signal h(t)xlabel(Time t sec)subplot(313)plot(y), grid on, title(The c

14、onvolution of x(t) and h(t) xlabel(Time t sec)信号 x (t)、h(t)和 x (t)*h(t)的波形图Q1-10:给定两个离散时间序列xn = 0.5nun-un-8hn = un-un-8编写程序 Q1_10,计算它们的卷积,并分别绘制 xn、hn和它们的卷积 yn的图形。编写的程序 Q1_10 如下:n=0:10;x = (0.5).n.*(u(n)-u(n-8);h = u(n)-u(n-8);y =conv(x,h); % Compute the convolution of x(t) and h(t)subplot(221)stem(n

15、,x,.), grid on, title(Signal x(n)subplot(222)stem(n,h,.), grid on, title(Signal h(n)subplot(212)stem(y), grid on, title(The convolution of x(n) and h(n), xlabel(Time t sec);信号 xn、hn和 yn的波形图Q1-11 已知一个序列为otherwisnnx,04编写 MATLAB 程序 Q1_11,能够将 xn以 N = 8 为周期进行周期延拓得到一个周期为 N =8的周期序列 yn,并分别绘制 xn和 yn图形。编写的程序

16、Q1_11 如下:U4.mfunction y=u4(n)y=n.*(u(n)-u(n-5);Q111.mclear, close all;n =-16:32x=u4(n);T = 8; y = 0;for k = -2:4;y =y+u4(n-k*T);endsubplot(211)stem(n,x,.);grid on,title (Original signal x(n)xlabel(Time t sec)subplot(212)stem(n,y);title (period signal x(n)xlabel(Time t sec)grid on,信号 xn的波形图 信号 yn的波形图

17、Q1-12 仿照范例程序 Program1_7,编写程序 Q1_12,计算并绘制由如下微分方程表示的系统在输入信号为 x(t) = (e-2t - e-3t)u(t)时的零状态响应和你手工计算得到的系统零状态响应曲线。)(82)(3)(2 txtydtty手工计算得到的系统零状态响应的数学表达式是:编写的程序 Q1_12 如下: 用 MATLAB 绘制的手工计算的系统响应clear, close all;num = input(Type in the right coefficient vector of differential equation:);den = input(Type in

18、the left coefficient vector of differential equation:);t = 0:0.01:8;x = input(Type in the expression of the input signal x(t):);y=lsim(num,den,x,t);plot(t,y)执行程序 Q1_12 得到的系统响应Q1-13:利用程序 Q1_9,验证卷积的相关性质。(a) 验证性质: )(*)(txtx选择信号 x(t)的数学表达式为:sin(t)x(t)、(t)和 x(t)*(t)的波形验证所得结论是:(b) 验证性质: )()(*)00txttx选择信号

19、x(t)的数学表达式为:sin(t) t0=2x(t)、 (t-t0) 和 的波形)(*0ttx验证所得结论是:(c) 验证性质: )()(*)()(*)( 211221 txttxttx 选择信号 x(t)的数学表达式为: sin(t) 选择的 t1 = 2 秒,t 2 = 3 秒。执行程序 Q1_9,输入信号 x(t-t1) 和 (t-t2) 的数学表达式,得到的信号及其卷积的波形图如下:执行程序 Q1_9,输入信号 x(t-t2) 和 (t-t1) 的数学表达式,得到的信号及其卷积的波形图如下:验证所得结论是:(d) 验证性质 : tdxutx)()(*选择信号 x(t)(建议选择一个时

20、限信号)的数学表达式为:u(t)-u(t-3)的数学表达式为:tdx)(手工绘制的 波形如下:t)(执行程序 Q1_9,输入信号 x(t) 和 u(t) 的数学表达式,得到的信号及其卷积的波形图如下:验证所得结论是:(e) 验证性质: )(*()(*)00thtxthtx选择信号 x(t)的数学表达式为: sin(t) 选择信号 h(t)的数学表达式为:sin(t)选择的 t0=:1执行程序 Q1_9,输入信号 x(t) 和 h(t-t0) 的数学表达式,得到的信号及其卷积的波形图如下:执行程序 Q1_9,输入信号 x(t-t0) 和 h(t) 的数学表达式,得到的信号及其卷积的波形图如下:验

21、证所得结论 是:Q1-14:做如下总结:1、信号与系统分析,就是基于信号的分解,在时域中,信号主要分解成:2、写出卷积的运算步骤,并谈谈你对卷积的一些基本性质的理解。利用 MATLAB 计算卷积的函数是什么?如何使用?3、在时域中,描述一个连续时间 LTI 系统的数学模型有:4、 MATLAB 是如何表示一个由微分方程描述的连续时间 LTI 系统的?求解连续时间 LTI 系统的单位冲激响应、单位阶跃响应以及系统在某一个输入信号作用下的零状态响应的MATLAB 函数有哪些?四、实验报告要求1、按要求完整书写你所编写的全部 MATLAB 程序2、详细记录实验过程中的有关信号波形图(存于自带的 U

22、盘中) ,图形要有明确的标题。全部的 MATLAB 图形应该用打印机打印,然后贴在本实验报告中的相应位置,禁止复印件。3、实事求是地回答相关问题,严禁抄袭。本实验完成时间: 年 月 日实验二 连续时间信号的频域分析三、实验内容及步骤实验前,必须首先阅读本实验原理,读懂所给出的全部范例程序。实验开始时,先在计算机上运行这些范例程序,观察所得到的信号的波形图。并结合范例程序应该完成的工作,进一步分析程序中各个语句的作用,从而真正理解这些程序。实验前,一定要针对下面的实验项目做好相应的实验准备工作,包括事先编写好相应的实验程序等事项。Q2-1 编写程序 Q2_1,绘制下面的信号的波形图:)5cos(

23、1)3cos(1)cs() 000 ttttx 10)cos()2sint其中, 0 = 0.5,要求将一个图形窗口分割成四个子图,分别绘制 cos(0t)、cos(3 0t)、cos(50t) 和 x(t) 的波形图,给图形加 title,网格线和 x 坐标标签,并且程序能够接受从键盘输入的和式中的项数。抄写程序 Q2_1 如下:clear,close allT = 2; dt = 0.00001; t = -2*pi:dt:2*pi; w0=0.5*pi;x1 = cos(w0*t);x3=(-1/3)*cos(3*w0*t);x5=(1/5)*cos(5*w0*t);N = input(

24、Type in the number of the harmonic components N = :);y=0;for q = 1:N; % Synthesiz the periodic signal y(t) from the finite Fourier seriesy = y+(1/q).*sin(q*pi)/2).*cos(q*w0*t);end;subplot(221),plot(t,x1), title(The original signal cos(w0t);grid on; axis(-2*pi,2*pi,-1,1), xlabel(Time t)subplot(223),

25、plot(t,x5), title(The original signal (1/5)cos(5w0t);grid on; axis(-2*pi,2*pi,-1,1), xlabel(Time t)subplot(222)plot(t,x3), title(The original signal (-1/3)cos(3w0t);grid on; axis(-2*pi,2*pi,-1,1), xlabel(Time t)subplot(224)plot(t,y), title(The synthesis signal of x(t);grid on; axis(-10,10,-1,1), xla

26、bel(Index N)执行程序 Q2_1 所得到的图形如下:N=10Q2-2 给程序 Program2_1 增加适当的语句,并以 Q2_2 存盘,使之能够计算例题 2-1 中的周期方波信号的傅里叶级数的系数,并绘制出信号的幅度谱和相位谱的谱线图。通过增加适当的语句修改 Program2_1 而成的程序 Q2_2 抄写如下:clear,close allT = 2; dt = 0.00001; t = -2:dt:2;x1 = u(t)-u(t-1-dt); x = 0;for m = -1:1x = x + u(t-m*T) - u(t-1-m*T-dt); % Periodically e

27、xtend x1(t) to form a periodic signalendw0 = 2*pi/T;N = input(Type in the number of the harmonic components N = :);L = 2*N+1;for k = -N:1:N;ak(N+1+k) = (1/T)*x1*exp(-j*k*w0*t)*dt;endphi = angle(ak);y=0;for q = 1:L; % Synthesiz the periodic signal y(t) from the finite Fourier seriesy = y+ak(q)*exp(j*

28、(-(L-1)/2+q-1)*2*pi*t/T);end;subplot(221)plot(t,x), title(The original signal x(t), axis(-2,2,-0.2,1.2),grid on;subplot(222)k=-N:N; stem(ak), title(The ak of x(t), axis(-1,1,-0.4,0.4),grid on;subplot(223)k=-N:N; stem(k,abs(ak),k.), title(The amplitude |ak| of x(t), axis(-N,N,-0.1,0.6),grid on;subplo

29、t(224)stem(k,phi,r.), title(The phase phi(k) of x(t), axis(-N,N,-2,2), xlabel(Index k),grid on;执行程序 Q2_2 得到的图形Q2-3 反复执行程序 Program2_2,每次执行该程序时,输入不同的 N 值,并观察所合成的周期方波信号。通过观察,你了解的吉伯斯现象的特点是:N=5 N=10N=20 N=401、周期信号的傅里叶级数与 GIBBS 现象给定如下两个周期信号: t122)(1txQ2-4 分别手工计算 x1(t) 和 x2(t) 的傅里叶级数的系数。信号 x1(t) 在其主周期内的数学表

30、达式为:t+1 -1t01-t 0t1计算 x1(t) 的傅里叶级数的系数的计算过程如下:k = -10:10;ak=0;ak = 1/2.* (sin(k)*pi/2)./(k)*pi/2)N=-10:10;stem(k,ak);通过计算得到的 x1(t)的傅里叶级数的系数的数学表达式是: 1/2.* (sin(k)*pi/2)./(k)*pi/2)(2txt221.0.信号 x2(t) 在其主周期内的数学表达式为:1 |t|0.20 0.2|t|1计算 x2(t) 的傅里叶级数的系数的计算过程如下:k = -10:10;ak=0;ak =sin(k*pi*0.2)./(k*pi)N=-10

31、:10;stem(k,ak);通过计算得到的 x1(t)的傅里叶级数的系数的数学表达式是: sin(k*pi*0.2)./(k*pi)用 MATLAB 帮助你计算出你手工计算的傅里叶级数的系数 ak 从-10 到 10 共 21 个系数。从命令窗口上抄写 x1(t)的 21 个系数如下:ak =Columns 1 through 8 0.0000 0.0354 -0.0000 -0.0455 0.0000 0.0637 -0.0000 -0.1061Columns 9 through 16 0.0000 0.3183 NaN 0.3183 0.0000 -0.1061 -0.0000 0.06

32、37Columns 17 through 21 0.0000 -0.0455 -0.0000 0.0354 0.0000从命令窗口上抄写 x2(t)的 21 个系数如下:Columns 1 through 8 -0.0000 -0.0208 -0.0378 -0.0432 -0.0312 0.0000 0.0468 0.1009Columns 9 through 16 0.1514 0.1871 NaN 0.1871 0.1514 0.1009 0.0468 0.0000Columns 17 through 21 -0.0312 -0.0432 -0.0378 -0.0208 -0.0000Q

33、2-5 仿照程序 Program2_1,编写程序 Q2_5,以计算 x1(t)的傅里叶级数的系数。程序 Q2_5 如下:编写函数 x1.mfunction y=x1(t)y1=t+1;y2=1-t;y=y1.*(-1tQ2_5.mclear,close allT = 2; dt = 0.00001; t = -8:dt:8;x11 = x1(t); x = 0;for m = -8:8x = x + x1(t-m*T); % Periodically extend x1(t) to form a periodic signalendw0 = 2*pi/T;N = 10;L = 2*N+1;fo

34、r k = -N:1:N;ak(N+1+k) = (1/T)*x11*exp(-j*k*w0*t)*dt;endphi = angle(ak);y=0;for q = 1:L; % Synthesiz the periodic signal y(t) from the finite Fourier seriesy = y+ak(q)*exp(j*(-(L-1)/2+q-1)*2*pi*t/T);end;subplot(211),plot(t,x), title(The original signal x(t), axis(-8,8,-0.2,1.2),grid on,subplot(212)k

35、=-N:N; stem(k,ak,k.), title(The factor ak of x(t), axis(-N,N,-0.1,0.6),grid on,执行程序 Q2_5 所得到的 x1(t)的傅里叶级数的 ak 从-10 到 10 共 21 个系数如下:Columns 1 through 5 0.0000 + 0.0000i 0.0025 + 0.0000i 0.0000 + 0.0000i 0.0041 - 0.0000i 0.0000 - 0.0000iColumns 6 through 10 0.0081 + 0.0000i -0.0000 - 0.0000i 0.0225 -

36、0.0000i -0.0000 - 0.0000i 0.2026 + 0.0000iColumns 11 through 15 0.5000 0.2026 - 0.0000i -0.0000 + 0.0000i 0.0225 + 0.0000i -0.0000 + 0.0000iColumns 16 through 20 0.0081 - 0.0000i 0.0000 + 0.0000i 0.0041 + 0.0000i 0.0000 - 0.0000i 0.0025 - 0.0000iColumn 21 0.0000 - 0.0000i与你手工计算的 ak 相比较,是否相同,如有不同,是何原

37、因造成的?答:Q2-6 仿照程序 Program2_1,编写程序 Q2_6,以计算 x2(t) 的傅里叶级数的系数(不绘图)。程序 Q2_6 如下:编写函数 x2.mfunction y=x2(t)y1=1;y2=1;y=y1.*(-0.2tQ2_6.mclear,close allT = 2; dt = 0.00001; t = -8:dt:8;x11 = x2(t); x = 0;for m = -8:8x = x + x2(t-m*T); % Periodically extend x1(t) to form a periodic signalendw0 = 2*pi/T;N = 10;

38、L = 2*N+1;for k = -N:1:N;ak(N+1+k) = (1/T)*x11*exp(-j*k*w0*t)*dt;endphi = angle(ak);y=0;for q = 1:L; % Synthesiz the periodic signal y(t) from the finite Fourier seriesy = y+ak(q)*exp(j*(-(L-1)/2+q-1)*2*pi*t/T);end;subplot(211),plot(t,x), title(The original signal x(t), axis(-8,8,-0.2,1.2),grid on,s

39、ubplot(212)k=-N:N; stem(k,ak,k.), title(The factor ak of x(t), axis(-N,N,-0.1,0.6),grid on,执行程序 Q2_6 所得到的 x2(t)的傅里叶级数的 ak 从-10 到 10 共 21 个系数如下:Columns 1 through 5 0.0000 - 0.0000i -0.0208 + 0.0000i -0.0378 - 0.0000i -0.0432 + 0.0000i -0.0312 + 0.0000iColumns 6 through 10 -0.0000 + 0.0000i 0.0468 + 0

40、.0000i 0.1009 + 0.0000i 0.1514 - 0.0000i 0.1871 + 0.0000iColumns 11 through 15 0.2000 0.1871 - 0.0000i 0.1514 + 0.0000i 0.1009 - 0.0000i 0.0468 - 0.0000iColumns 16 through 20 -0.0000 - 0.0000i -0.0312 - 0.0000i -0.0432 - 0.0000i -0.0378 + 0.0000i -0.0208 - 0.0000iColumn 21 0.0000 + 0.0000i与你手工计算的 ak

41、 相比较,是否相同,如有不同,是何原因造成的?答:Q2-7 仿照程序 Program2_2,编写程序 Q2_7,计算并绘制出原始信号 x1(t) 的波形图,用有限项级数合成的 y1(t) 的波形图,以及 x1(t) 的幅度频谱和相位频谱的谱线图。编写程序 Q2_7 如下:clear,close allT = 2; dt = 0.00001; t = -8:dt:8;x11 = x1(t); x = 0;for m = -8:8x = x + x1(t-m*T); % Periodically extend x1(t) to form a periodic signalendw0 = 2*pi/

42、T;N = 5;L = 2*N+1;for k = -N:1:N;ak(N+1+k) = (1/T)*x11*exp(-j*k*w0*t)*dt;endphi = angle(ak);y=0;for q = 1:L; % Synthesiz the periodic signal y(t) from the finite Fourier seriesy = y+ak(q)*exp(j*(-(L-1)/2+q-1)*2*pi*t/T);end;phi = angle(ak);y=0;for q = 1:L; % Synthesiz the periodic signal y(t) from th

43、e finite Fourier seriesy = y+ak(q)*exp(j*(-(L-1)/2+q-1)*2*pi*t/T);end;subplot(221),plot(t,x), title(The original signal x(t), axis(-8,8,-0.2,1.2),subplot(223), plot(t,y), title(The synthesis signal y(t), axis(-8,8,-0.2,1.2), xlabel(Time t),subplot(222)k=-N:N; stem(k,abs(ak),k.), title(The amplitude

44、|ak| of x(t), axis(-N,N,-0.1,0.6)subplot(224)stem(k,phi,r.), title(The phase phi(k) of x(t), axis(-N,N,-2,2), xlabel(Index k)执行程序 Q2_7,输入 N = 5 所得到的图形如下:反复执行程序 Q2_7,输入不同的 N 值,观察合成的信号波形中,是否会产生 Gibbs 现象?为什么?; 答:2. 连续时间非周期信号的傅里叶变换给定两个时限信号:21,2)(1ttttx )1()(2cos)(2 tuttxQ2-8 利用单位阶跃信号 u(t),将 x1(t) 表示成一个数

45、学闭式表达式,并手工绘制 x1(t) 和x2(t) 的时域波形图。信号 x1(t) 的闭式数学表达式为:x1(t) = :y1=t+2;y2=1;y3=-t+2;y=y1.*(-2=t手工绘制的 x1(t)的时域波形图 手工绘制的 x2(t)的时域波形图function y=x28(t)y1=t+2;y2=1;y3=-t+2;y=y1.*(-2=tclear,close allT = 2; dt = 0.00001; t = -5:dt:5;x1 = x28(t).*(u(t+2)-u(t-2); x2=cos(pi/2*t).*(u(t+1)-u(t-1);subplot(211),plot

46、(t,x1,.),title(The original signal x1(t), axis(-5,5,-1,1), xlabel(Time t)subplot(212),plot(t,x2,.),title(The original signal x2(t),axis(-5,5,-1,1), xlabel(Time t)Q2-9 手工计算 x1(t) 和 x2(t) 的傅里叶变换( 如能够用傅里叶变换的性质计算最好),并手工绘制出它们的幅度谱和相位谱;计算 x1(t) 的傅里叶变换的过程:计算得到的 x1(t) 的傅里叶变换的数学表达式为:clear,close allT = 0.01; dw = 0.1; %时间和频率变化的步长t = -10:T:10;w = -4*pi:dw:4*pi;xx=x28(t);X=x28(t)*exp(-j*t*w)*T; %傅里叶变换X1=abs(X); %计算幅度谱phai=angle(X); %计算相位谱subplot(221);plot(t,xx),title(The original signal x1(t),axis(-10,10,-1,2),xlabel(Time t),grid on;subplot(222)plot

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报