ex2_11.m

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

M
29
字号
%%%%%%%%%%%%%%%%% Example 2.11 %%%%%%%%%%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   ---- Zero outside the unit circle ----%cleardisp('Example 2.11')% create TF object with Ts = 0.1 sG = tf([-0.3354  0.3526],[1  -1.724  0.7408],0.1)[zG,pG,kG] = zpkdata(G,'v')figureucircle, axis equal, hold on   % draw unit circle and set axespzmap(G), hold off             % plot poles and zero in z-planetitle('Example 2.11')set_xo_size                    % show larger X's and O'sdisp('Plotting pole-zero locations')disp('******>'), pause [y,k] = step(G);               % compute step response of G(z)figurestem(k,y,'filled',':'),grid    % plot step responsetitle('Step response for Example 2.11')xlabel('Time (s)')disp('Plotting step response')%%%%%%%%%%

⌨️ 快捷键说明

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