t21mo.m

来自「状态反馈matlab仿真程序」· M 代码 · 共 37 行

M
37
字号
%------------------------------------------------------------------
%  This program is used to solve (ot test) the step response 
%        of Close Loop System by Inner-model method
%  NOTE: The 'iden_c22e.m' must be executed first.
%------------------------------------------------------------------


Ts=120;
%Kp=0.9012, Ti=Kp/0.1904, Td=0.4719/Kp, 
lemda=7;
figure(4);
clf;
xlabel('t'); ylabel('y'); Title('The Step Response of Close Loop System');
hold on

for (i=1:1:10)
   
   Kp=b1/(2*lemda*K);
   Ti=b1/b0;
   Td=b2/b1;
   Lf=lemda/2;

   [t,xx,ym]=sim('t21c',Ts);
   plot(t,ym);
   
   i,lemda,
   lemda=lemda+0.5;
   
end
lemda=8,
Kp=b1/(2*lemda*K),
Ti=b1/b0,
Td=b2/b1,
Lf=lemda/2,


⌨️ 快捷键说明

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