reinf2_3.m

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

M
29
字号
%%%%%%%%%%% Reinforcement Problem 2.3 %%%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%	--- Fourth-order System with complex poles ---%cleardisp('Reinforcement Problem 2.3')% Create G(z) as a discrete-time ZPK object %                with unspecified sampling periodzz = [-0.2; 0.4]pp = [0.6; -0.5 + 0.75i; -0.5 - 0.75i; -0.3]kk = 150G  = zpk(zz,pp,kk,-1)get(G)                      % Show properties of the ZPK LTI object[nn,dd] = tfdata(G,'v')     % Extract num & den from the LTI objectGG = tf(G)			        % convert from ZPK form to TF form[z,p,k] = zpkdata(GG,'v')   % Extract zeros, poles, & gain from the LZPK formfigureucircle                     % show unit circle in z-planehold onpzmap(GG)                   % draw pole-zero plot using TF formhold offset_xo_size					% make larger X's and O'stext('Units','norm','Pos',[0.02,0.95],'Str','Reinforcement Problem 2.3')%%%%%%%%%%

⌨️ 快捷键说明

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