?? reinf7_6.m
字號:
%%%%%%%%%%% Reinforcement Problem 7.6 %%%%%%%%%%%
% 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 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Ts = 0.1
Gp = tf(6*[1 1],conv([1 0],[1 4 4]))
Gz = c2d(Gp,Ts,'zoh')
Kz = 2.5
Kp = dcgain(Gz*Kz)
Kv = vgain(Gz*Kz)
Gcl = feedback(Gz*Kz,1)
figure, step(Gcl)
ramp = [0:Ts:5];
figure, [y,t] = lsim(Gcl,ramp); plot(t,y)
%%%%%%%%%%
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -