reinf3_14.m

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

M
27
字号
%%%%%%%%%% Reinforcement Problem 3.14 %%%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   ---- One more feedback connection ----%cleardisp('Reinforcement Problem 3.14')Ts = 1;denG = conv([10 -0.5],[3 0.25]);G = tf([12 -5],denG,Ts)          % forward path in TF formH = tf(6,[3 -2 -0.3],Ts)         % feedback path in TF formT = feedback(G,H)                % closed-loop system[zT,pT,kT] = zpkdata(T,'v')      % CL zeros,poles,gain[magpT,thetapT] = xy2p(pT)       % polar form for CL polesdtime = 0:Ts:40;y = step(T,dtime);               % compute step responsefigurestem(dtime,y,':','filled');grid  % plot step responsetitle('Step response for Reinforcement Problem 3.14')xlabel('Discrete time k')%%%%%%%%%%

⌨️ 快捷键说明

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