fig9_13.m
来自「包含了控制理论的各种仿真程序」· M 代码 · 共 36 行
M
36 行
% Figure 9.13 Feedback Control of Dynamic Systems, 4e
% Franklin, Powell, Emami
%
% fig9_13.m is a script to generate fig 9.13
% the rootlocus of the PD plus notch compensator of the
% satellite position control, non-colocated case
% satellite system matrices
f =[0 1.0000 0 0;
-0.9100 -0.0360 0.9100 0.0360;
0 0 0 1.0000 ;
0.0910 0.0036 -0.0910 -0.0036];
g =[0;
0;
0;
1];
h =[1 0 0 0];
j =[0];
% controller transfer function
no3=conv(.25*[2 1],[1/.81 0 1]);
do3=conv([1/20 1],[1/625 2/25 1]);
% convert to state-space
[Ac3,Bc3,Cc3,Dc3]=tf2ss(no3,do3);
% series combination of controller and plant
[Aol,Bol,Col,Dol]=series( Ac3,Bc3,Cc3,Dc3,f,g,h,j );
Acl=Aol-Bol*Col;
hold off; clf
% rootlocus
rlocus(Aol,Bol,Col,Dol)
v=[-2 2 -1.5 1.5];axis(v);
title('Rootlocus for KD3(s)G(s)')
grid;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?