MATLAB实验报告Word格式.docx

上传人:b****6 文档编号:19316594 上传时间:2023-01-05 格式:DOCX 页数:10 大小:193.59KB
下载 相关 举报
MATLAB实验报告Word格式.docx_第1页
第1页 / 共10页
MATLAB实验报告Word格式.docx_第2页
第2页 / 共10页
MATLAB实验报告Word格式.docx_第3页
第3页 / 共10页
MATLAB实验报告Word格式.docx_第4页
第4页 / 共10页
MATLAB实验报告Word格式.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

MATLAB实验报告Word格式.docx

《MATLAB实验报告Word格式.docx》由会员分享,可在线阅读,更多相关《MATLAB实验报告Word格式.docx(10页珍藏版)》请在冰豆网上搜索。

MATLAB实验报告Word格式.docx

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

二、实验条件

Matlab

三、实验内容

1、利用Matlab命令画出下列连续信号的波形图。

(1)

代码:

k=2;

w=3;

phi=pi/4;

t=0:

0.01:

3;

ft=k*cos(w*t+phi);

plot(t,ft),gridon;

axis([0,3,-2.2,2.2])

title('

余弦信号'

(2)

k=-1;

a=-1;

ft=2-k*exp(a*t);

plot(t,ft),gridon

axis([0,3,2,3])

指数信号'

(3)

k=1;

w=pi;

phi=0;

2;

ft=1+k*cos(w*t+phi);

axis([0,3,0,2])

2、利用Matlab命令画出复信号

的实部、虚部、模和辐角。

10;

a=0;

b=1;

ft=k*exp(a+i*(b*t+phi));

subplot(2,2,1);

plot(t,real(ft));

实部'

);

axis([0,10,-2.2,2.2]);

gridon;

subplot(2,2,2);

plot(t,imag(ft));

虚部'

subplot(2,2,3);

plot(t,abs(ft));

模'

axis([0,10,0,6]);

subplot(2,2,4);

plot(t,angle(ft));

相角'

axis([0,10,-4,4]);

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

的波形图。

functionf=funct1(t)

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

functionf=uCT(t)

f=(t>

=0)

t=-2:

4;

ft1=funct1(t-2);

ft2=funct1(3*t);

ft3=funct1(-t);

ft4=funct1(-3*t-2);

subplot(2,2,1)

plot(t,ft1);

f(t-2)'

axis([-2,4,-0.5,2])

subplot(2,2,2)

plot(t,ft2);

f(3t)'

subplot(2,2,3)

plot(t,ft3);

f(-t)'

subplot(2,2,4)

plot(t,ft4);

f(-3t-2)'

4、使用微分命令求

关于变量x的一阶导数;

使用积分命令计算不定积分

,定积分

5、已知

,使用命令画出两信号和及两信号乘积的波形图。

其中,

f=1;

3/f;

f1=sin(2*pi*f*t);

f2=sin(2*pi*8*f*t);

subplot(2,1,1)

plot(t,f1+1,'

:

'

t,f1-1,'

t,f1+f2)

gridon,title('

f1(t)+f2(t)'

subplot(2,1,2)

plot(t,f1,'

t,-f1,'

t,f1.*f2)

f1(t)*f2(t)'

6、用Matlab命令绘出下列信号的卷积积分

的时域波形图。

function[f,t]=ctsconv(f1,f2,t1,t2,dt)

f=conv(f1,f2);

f=f*dt;

ts=min(t1)+min(t2);

te=max(t1)+max(t2);

t=ts:

dt:

te;

plot(t1,f1);

axis([min(t1),max(t1),min(f1)-abs(min(f1)*0.2),max(f1)+abs(max(f1)*0.2)])

f1(t)'

xlabel('

t'

plot(t2,f2);

axis([min(t2),max(t2),min(f2)-abs(min(f2)*0.2),max(f2)+abs(max(f2)*0.2)])

f2(t)'

plot(t,f);

axis([min(t),max(t),min(f)-abs(min(f)*0.2),max(f)+abs(max(f)*0.2)])

f(t)=f1(t)*f2(t)'

dt=0.01;

t1=0:

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

t2=t1;

f2=uCT(t2)-uCT(t2-3)+uCT(t2-1)-uCT(t2-2);

[t,f]=ctsconv(f1,f2,t1,t2,dt);

四、实验结论和讨论

此次试验主要实践了信号与系统第一、二章的主要内容,让我们掌握了另一种独特的计算方法,更加简便。

试验是存在误差的,当可以人为地减小误差。

五、实验思考

要熟练掌握MATLAB的使用方法,以及其使用规则;

务必要在实验课之前进行预习,以保证实验效率;

在实验过程中,又不会的地方要及时询问,有质疑的地方要提出来;

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

当前位置:首页 > 表格模板 > 合同协议

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1