ex2_1.m

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

M
25
字号
%%%%%%%%%%%%%%%%%% Example 2.1 %%%%%%%%%%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   ---- Build G(z) as TF object ----%cleardisp('Example 2.1')numG = [0.1 0.03 -0.07]           % enter transfer function numeratordenG = [1 -2.7 2.42 -0.72]        % ...and denominator polynomials%-- Create G(z) as a discrete-time TF object with unspecified sampling periodG = tf(numG,denG,-1)get(G)                            % Show properties of the TF objectdisp('******>'), pause[nn,dd] = tfdata(G,'v')[zz,pp,kk] = zpkdata(G,'v')       % Extract num & den from the TF objectucircle, hold on                  % show unit circle in z-planepzmap(G), hold off                % draw pole-zero plotset_xo_size                       % make larger X's and O'stitle('Example 2.1')%%%%%%%%%%

⌨️ 快捷键说明

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