reinf7_3.m

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

M
23
字号
%%%%%%%%%%% Reinforcement Problem 7.3 %%%%%%%%%%%
%   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                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   ---- Non-ideal sensor ----
%
clear
disp('Reinforcement Problem 7.3')
Ts = 0.1
Hs = tf(20,[1 20])               % continuous sensor in TF form
Gs = tf(10,conv([1 0],[1 10]))   % continuous plant in TF form
Gz = c2d(Gs,Ts,'zoh')            % discretize plant with ZOH
Gc = tf([1 -0.5],[1 -0.8],0.1)   % discrete controller
HGz = c2d(Hs*Gs,Ts,'zoh')        % discretize combined Hs & Gs
Gcl = Gz*Gc/(1+HGz*Gc)           % CL transfer function
Gcl = minreal(Gcl)               % eliminate duplicate states
damp(Gcl)
[y,t] = step(Gcl);
[Moa,tpa,tra,tsa,essa] = kstats(t,y,1)
%%%%%%%%%%

⌨️ 快捷键说明

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