📄 experiment4_s.m
字号:
%close all,clear;
figure(1)
t=0:0.01:6;
num=[1];%input('Type in the coefficient vector of the numerator polynomial of H(s):num=');
den=[1 5 8 4];%input('Type in the coefficient vector of the denominator polynomial of H(s):den=');
z=roots(num);
p=roots(den);
z=z';p=p';
h=impulse(num,den,t);
disp('The zeros of the system are:')
z
disp('The poles of the systme are:')
p
[r,p,k]=residue(num,den);
disp('The expression of H(s) in partial fraction expansion form')
r=r'
p=p'
k
subplot(211)
pzmap(num,den)
subplot(212)
plot(t,h)
title('The impulse response h(t) of the system')
axis([0,5,min(h),max(h)])
xlabel('Time in second')
grid on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -