reinf2_18.m

来自「离散控制系统设计的MATLAB 代码」· M 代码 · 共 22 行

M
22
字号
%%%%%%%%%%% Reinforcement Problem 2.18 %%%%%%%%%%%   Discrete-Time Control Problems using        %%       MATLAB and the Control System Toolbox   %%   by J.H. Chow, D.K. Frederick, & N.W. Chbat  %%         Brooks/Cole Publishing Company        %%                September 2002                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- Poles outside the unit circle ---%cleardisp('Reinforcement Problem 2.18')numG = [1 0.5657 0.16]                % generate G(z) as TF objectdenG = [1 -1.2178 0.3902 1.2129 -0.3125]G = tf(numG,denG,1)             % sampling period = 1.0 s[mag,theta] = xy2p(pole(G))     % magnitudes & angles of polesk = 0:20;y = impulse(G,k);               % impulse response of G(z)figurestem(k,y,'o');grid       title('Impulse response for Reinforcement Problem 2.18')xlabel('Time (s)')%%%%%%%%%%

⌨️ 快捷键说明

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