文档详情

MATLAB-2.连续信号卷积积分.docx

发布:2025-05-24约1.19千字共4页下载文档
文本预览下载声明

1、两信号f1t=ut-ut-1

clearall

delta=0.01;

t=-1:delta:1;

f1=stepfun(t,0)-stepfun(t,1);

f2=stepfun(t,-1)-stepfun(t,0);

y1=conv(f1,f1)*delta;

n=length(y1);

subplot(311);

plot((0:n-1)*delta-2,y1);

axis([-3,3,-0.5,1.5]);

gridon;

subplot(312);

y2=conv(f2,f2)*delta;

n=length(y2);

plot((0:n-1)*delta-2,y2);

axis([-3,3,-0.5,1.5]);

gridon;

subplot(313);

y3=conv(f1,f2)*delta;

n=length(y1);

plot((0:n-1)*delta-2,y3);

axis([-3,3,-0.5,1.5]);

gridon;

f1(t)t2211f2(t)

f

t

2

2

1

1

f

t

2

2

1

1

3

detla=0.001;

t=0:detla:3;

f1=stepfun(t,0)-stepfun(t,2);

f2=stepfun(t,0)+stepfun(t,1)-stepfun(t,2)+stepfun(t,3);

f=conv(f1,f2)*detla;

n=length(f);

plot((0:n-1)*detla,f)

axis([-1,6,-1,4])

gridon;

f1(t)t1-110f2

f

t

1

-1

1

0

f

t

-2

0

1

-1

-3

1

delta=0.01;

t=-3:delta:3;

f1=stepfun(t,-1)-stepfun(t,1);

f2=(stepfun(t,-3)-stepfun(t,-2)).*(t+3)+(stepfun(t,-2)-stepfun(t,0))+(stepfun(t,0)-stepfun(t,1)).*(-t+1);

y=conv(f1,f2)*delta;

n=length(y);

plot((0:n-1)*delta-4,y);

axis([-5,5,-0.5,2.5])

gridon;

4、两信号f1t=t-1[ut-1-u

delta=0.01;

t=-1:delta:5;

f1=(stepfun(t,1)-stepfun(t,3)).*(t-1);

f2=stepfun(t,-1)-2*stepfun(t,2);

y=conv(f1,f2)*delta;

n=length(y);

plot((0:n-1)*delta,y);

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

gridon;

显示全部
相似文档