信号与线性系统实验报告(2)
时间:2026-01-19
时间:2026-01-19
一、连续时间系统的时域分析。
1、卷积计算及其主要性质:
(1)
% design1_1.m
T=0.01; % 取样周期 tx=0:T:2;
x=exp((-1)*tx).*(Heaviside(tx)-Heaviside(tx-2)); % 关于rectpuls函数,参看 help rectpuls th=0:T:2;
h=2.*(Heaviside(th)-Heaviside(th-2));
t=0:T:4; % 两个门函数卷积不会出现截尾误差 y=conv(x,h); % 卷积结果 figure
subplot(3,1,1); % 多子图显示,将图形框分为 3x1 个子图,1号子图显示 x plot(tx,x)
ylabel('输入激励');
subplot(3,1,2); % 2号子图显示 h plot(th,h)
ylabel('单位冲激响应');
subplot(3,1,3); % 3号子图显示 y plot(t,y)
ylabel('输出响应');
仿真结果为:
下一篇:预应力锚索安全专项施工方案