www.gusucode.com > control 案例程序 matlab源码代码 > control/InitializeControlSystemDesignerExample.m

    %% Initialize Control System Designer
%%
% Create an initialization template for configuration 2, with the
% compensator in the feedback path.
T = sisoinit(2);         
%%
% Specify the fixed plant model.
T.G.Value = tf(1, [1 1]); 
%%
% Specify an initial compensator value.
T.C.Value = tf(1,[1 2]);
%%
% Open a root locus Editor and Nichols editor for tuning the open-loop
% response.
T.OL1.View = {'rlocus','nichols'}; 
%%
% Open Control System Designer using the specified configuration settings.
%
%   controlSystemDesigner(T)
% 
%%
%
% <<../sisoinit_example1.png>>
%
%%
% By default, the template for configuration 2 also opens a Bode editor for
% tuning the closed-loop response.