📄 ex2_11.m
字号:
%%%%%%%%%%%%%%%%% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -