⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 experiment4_s.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 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 + -