1 / 11
文档名称:

信号仿真设计实验汇总.docx

格式:docx   大小:179KB   页数:11页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

信号仿真设计实验汇总.docx

上传人:小雄 2022/4/15 文件大小:179 KB

下载得到文件列表

信号仿真设计实验汇总.docx

相关文档

文档介绍

文档介绍:设计一
clear all;
t=0:0. 001:4;
fl-(-t+4);
f2=sin(2*pi*t);
f3=(t+4)+f2;
subplot (2, 2, 1);
plot (t, f3) ; xlabel (' tle ('Hs 的零状态响应');
第二题:
a=[l, 0. 6363, 0. 9396, 0. 5123, 0. 0037] ;b=[-0. 475, -0. 248, -0. 1189, -0. 0564];
sys=tf (b, a) ; t=0:0. 001:100;
yl=impulse(sys, t);subplot(2, 2, 1);plot(t, yl);grid on;
xlabel C时间(t) ') ;ylabel ('yl (t)') ;title('冲击激励下的零状态响应');
y2二step(sys, t) ;subplot (2, 2, 2) ;plot (t, y2) ;grid on;
xlabel C时间(t) ') ;ylabel ('y2(t)') ;title('阶跃激励下的零状态响应');
x 二 t. * (stepfun (t, 0)-stepfun (t, 10));
y3=lsim(sys, x, t);
subplot (2, 2, 3) ;plot (t, y3); grid on;
xlabel C时间(t) ') ;ylabel ('y3(t)') ;title('斜坡激励下的零状态响应');
x=sin(t) ;y4=lsim(sys, x, t);
subplot (2, 2, 4) ;plot (t, y4); grid on;
xlabel C时间(t) ') ;ylabel ('y4(t)') ;title('正弦激励下的零状态响应');
冲击激励下的 分状:志 响应
阶趺激励下的卷怯态响应
时间(t)
正弦激励下的卷状态响应
第三题:
b=[2, 3] ;a=[l, 4, 4] ;c=[l, 0];
t=0:0. 001:10;
x=cos (t);
sys=tf (b, a);
yl=lsim(sys,x,t);
[A, B, C, D]=tf2ss (b, a);
syss=ss (A, B, C, D);
y2=lsim(syss, x, t, c);
y=y2-yl;
plot(t, y);
xlabel (,t') ;ylabel (' y(t)'); title C 零状态响应');
实验4
syms t
f=exp(-2*t) *sym(' Heaviside (t)') +1;
F二four i er (f)
g=exp(-1) *sym(' Heaviside (t~l)') +sym(,Heaviside (tT)-Heaviside (t+1)');
G二four i er (g)
h=2*sym(' Heaviside (t)') +diff (sym(‘ Heaviside,));
H=fourier(h)
所得结果:
F =
1/(2+i*w)+2*pi*dirac(w)
G =
-2/ (l+i*w) /w*sin (w) +1/ (l+i*w) * (exp (一i*虹 1) +exp (-i*w)-exp (i*w))
4*pi*dirac(w)-2*i/w
实验五连续信号的采样与重构
tl二0:0. 0005:20; t2二0::5;
fl 二 ; f2=3;
xl=3*sin(2*pi*fl*tl);
x2=3*sin(2*pi*f2*t2);
subplot (4, 1, 1) ;plot (tl, xl) ;grid;
xlabel ('时间,msec,) jylabel ('幅值');
title(J模拟信号1');
axis([0 20 - 3. 2]) ; T=l/5. 12;
nl=0:T:20; n2=0:T:5;
xsl=3*sin(2*pi*fl*nl);
subplot (4, 1, 2);
kl=0:length(nl)-l;
k2=0:length (n2)T;
stem(kl, xsl);grid;
xlabel ('时间,msec,) ;ylabel ('幅值');
titleC采样结果1');
axis ([0 (length(nl) -1) -3. 2 3. 2]);
subplot (4, 1,3); plot