信号与系统Matlab课程设计报告

内容发布更新时间 : 2024/5/9 14:43:51星期一 下面是文章的全部内容请认真阅读。

南通大学电子信息学院

信号与系统课程设计报告

班 级: 姓 名: 学 号: 指导老师: 设计时间:

信131 罗开元 1311011022 张小美 2015.01.13

南通大学罗开元

2014—2015学年第一学期

南通大学罗开元

一、连续信号的时域分析

二、

1. 信号的产生 (1)阶跃函数

function [t,y1]=jieyue(t1,t2,t0) dt=0.01;

ttt=t1:dt:t0-dt; tt=t0:dt:t2; t=t1:dt:t2; n=length(ttt); nn=length(tt); u=zeros(1,n); uu=ones(1,nn); y1=[u,uu]; return 冲激函数

function [t,y2]=chongji(t1,t2,t0) dt=0.01; t=t1:dt:t2; n=length(t); y2(1:n)=0;

y2(1,(t0-t1)/dt+1)=1/dt;

(2)调用上述函数产生信号ε(t-2),?(t-4),e-t?(t),-6s≤t≤6s,并画出波形。

Command Window

subplot(3,1,1); [t1,y1]=jieyue(-6,6,2);

1

南通大学罗开元

stairs(t1,y1); axis([-6 6 0 1.5]); subplot(3,1,2);

[t2,y2]=chongji(-6,6,4);plot(t2,y2); subplot(3,1,3); [t3,y3]=jieyue(-6,6,0); y3=exp(-(t3)).*y3;plot(t3,y3);

波形如下图所示:

(3)根据f(t)画出f(2t)和f(1-0.5t)的波形

t=-3:0.01:3; y=tripuls(t,4,0.6); subplot(3,1,1); plot(t,y);

2

南通大学罗开元

title('f(t)'); xlabel('(a)'); y1=tripuls(2*t,4,0.6); subplot(3,1,2); plot(t,y1); title('f(2t)'); xlabel('(b)'); t1=2-2*t;

y2=tripuls(1-0.5*t1,4,0.6); subplot(3,1,3); plot(t1,y2);

title('f(1-0.5*t)'); xlabel('(c)');

得到波形如下图所示:

3

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