fig9_03.m

来自「包含了控制理论的各种仿真程序」· M 代码 · 共 34 行

M
34
字号
%  Figure 9.03     Feedback Control of Dynamic Systems, 4e
%                        Franklin, Powell, Emami
%
%  fig9_03.m is a script to generate Fig. 9.3  
%  the rootlocus of the uncompensated satellite 
%  position control, non-colocated case

clf;
% 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];

% convert to numerator-denominator form
[np,dp]=ss2tf(f,g,h,j,1);
% remove leading zeros in numerator 
np=np(4:5);
hold off; clf
% rootlocus
rlocus(np,dp)
v=[-2 2 -1.5 1.5];axis(v); 
grid;
title('Fig.9.3 Rootlocus for satellite')
%

⌨️ 快捷键说明

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