ex9_10.m

来自「Programs for the book Advanced Engineeri」· M 代码 · 共 11 行

M
11
字号
% EX9_10.M Plot the impulse and step response for the equation
%  D2y + 3*Dy + 2*y = f(t)
%
t=[0:.01:10];
ydelta = exp(-t)-exp(-2*t);
ystep = .5 - exp(-t) + 0.5*exp(-2*t);
plot(t,ydelta,t,ystep,'--')
xlabel('t')
ylabel('Response')
legend('Impulse response', 'Step response')
title('Differential equation solutions')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?