《基于MATLAB的信号与系统实验指导》编程练习试题

内容发布更新时间 : 2024/6/16 10:08:30星期一 下面是文章的全部内容请认真阅读。

专业资料

3连续时间信号在MATLAB中的运算

3-1.试用MATLAB命令绘出以下信号的波形图

(1)

>> syms x t; >> t=-1:0.01:1;

>> x=exp(-t).*sin(10*pi*t)+exp(-0.5*t).*sin(9*pi*t); >> plot(t,x)

(2)

>> syms x t; >> t=-1:0.01:1;

>> x=sinc(t).*cos(10*pi*t); >> plot(t,x)

word完美格式

专业资料

3-2.已知连续时间信号f(t)的波形如图3-6所示,试用MATLAB命令画出下列信号的波形图

先画出图3-6: >> t=-2:0.01:2;

>>f=(-t-1).*(-uCT(t+2)+uCT(t+1))+uCT(t+1)+uCT(t)-uCT(t-1)-(t-1).*(uCT(t-1)-uCT(t-2))-uCT(t-2); >> plot(t,f)

>> axis([-4 4 -1 2]) >> title('图3-6')

>> t=-2:0.01:2; >> f1=funct2(t-1);

word完美格式

专业资料

>> f2=funct2(2-t); >> f3=funct2(2*t+1); >> f4=funct2(4-t/2);

>> f5=(funct2(t)+funct2(-t)).*uCT(t);

>> subplot(231);plot(t,f1);grid on;title('f(t-1)');axis([-3 3 -1 2]); >> subplot(232);plot(t,f2);grid on;title('f(2-t)');axis([-3 3 -1 2]); >> subplot(233);plot(t,f3);grid on;title('f(2t-1)');axis([-3 3 -1 2]); >> subplot(234);plot(t,f4);grid on;title('f(4-t/2)');axis([-3 3 -1 2]);

>> subplot(235);plot(t,f5);grid on;title('(f(t)+f(-t))u(t)');axis([-3 3 -1 2]);

3-3.试用MATLAB命令绘出如图3-7所示信号的偶分量和奇分量

>> t=0:0.01:2;

>> f=(uCT(t)-uCT(t-2)).*(-t+1); >> plot(t,f);title('图3-7')

word完美格式

专业资料

>> f1=fliplr(f);

>> fe=(f+f1)/2;fo=(f-f1)/2;

>> subplot(211),plot(t,fe);grid on >> title('fe')

>> subplot(212),plot(t,fo);grid on;title('fo')

4连续时间信号的卷积计算

4-1用MATLAB命令绘出下列信号的卷积积分 的时域波形

>> dt=0.001;t1=-0.5:dt:3.5;

>> f1=uCT(t1)-uCT(t1-2); >> t2=t1;

>> f2=uCT(t2)+uCT(t2-1)-uCT(t2-2)-uCT(t2-3); >> [t,f]=ctsconv(f1,f2,t1,t2,dt);

word完美格式

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4 ceshi