2-21 已知某单位负反馈的开环传递函数为:
试在MATLAB环境下,分别求系统的单位脉冲响应和单位阶跃响应。
解: 因为系统的开环传递函数为G(s),反馈函数为H(s),所以系统的传递函数应为:
MATLAB代码如下:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Exercise 2-21 of the <principle of automatic control>, SCUT, Page 68 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear % remove all varialbes from the workspaces
clc % clear command window
num = [ 0, 0, 1, 2 ]; % numerator of G(s)
den = [ 1, 5, 2, 1 ];