diff --git a/Matlab/lab3.m b/Matlab/lab3.m index a3d32dd..02ae20d 100644 --- a/Matlab/lab3.m +++ b/Matlab/lab3.m @@ -57,4 +57,17 @@ Ys = H*Fs; yts = ilaplace(Ys); subplot(3, 1, 3); fplot(yts*heaviside(t)); -title('零状态响应'); \ No newline at end of file +title('零状态响应'); + +%% 5 +syms t s; +f = (-t+1)*(heaviside(t)-heaviside(t-2))-(heaviside(t-2)-heaviside(t-3)); +subplot(2, 1, 1); +ezplot(f); +subplot(2, 1, 2); +F = laplace(f); +H = 1/(s^2+5*s+4); +Y = F*H; +y = ilaplace(Y); +ezplot(y); +