reinf7_1.m
来自「离散控制系统设计的MATLAB 代码」· M 代码 · 共 24 行
M
24 行
%%%%%%%%%%% Reinforcement Problem 7.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 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ---- ZPK model ----
%
clear
disp('Reinforcement Problem 7.1')
Ts = 0.1
Gs = tf(10,conv([1 0],[1 10])) % plant in continuous TF form
Gz = c2d(Gs,Ts,'zoh') % discretize plant with ZOH
Gc = tf([1 -0.5],[1 -0.8],Ts) % discrete controller
T = feedback(Gz*Gc,1) % CL system
[wn,zeta,pp] = damp(T);
wn
zeta
[mag_pp,theta_pp] = xy2p(pp);
[y,t] = step(T);
[Mo,tp,tr,ts,ess] = kstats(t,y,1)
%%%%%%%%%%
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?