reinf2_20.m

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

M
26
字号
%%%%%%%%%%% Reinforcement Problem 2.20 %%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- Step response of first-order system ---%cleardisp('Reinforcement Problem 2.20')zz = 1pp = -0.5gn = 1G = zpk(zz,pp,gn,1)       % G(z) as ZPK object w/ unity sampling period[y,k] = step(G);figurestem(k,y,'filled');grid   % plot responsetitle('Step response for Reinforcement Problem 2.20: ')xlabel('Discrete time k')% G(z) has zero at z = 1; % transform of the step function is z/(z-1) which has a pole at z = 1% so the system zero cancels input pole, which means that the step% function does not appear in the response%%%%%%%%%%

⌨️ 快捷键说明

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