www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/RemoveOpeningUsingIndexExample.m

    %% Remove Opening Using Index  

%% 
% Create an |slLinearizer| interface for the |scdcascade| model. 
sllin = slLinearizer('scdcascade');  

%% 
% Generally, you configure the interface with analysis points, loop openings,
% operating points, and parameter values. For this example, add only openings
% to the interface. 
addOpening(sllin,{'y2m','y1m','u1'}); 

%%
% |'y2m'|, |'y1m'|, and |'u1'| are the names of signals in the |scdcascade|
% model. The |addOpening| command adds these signals to the list of permanent
% openings for |sllin|.  

%% 
% Determine the index number of the opening you want to remove. To do this,
% display the contents of the interface, which includes opening index numbers,
% in the Command Window. 
%
% For this example, remove the |'y1m'| opening from |sllin|. 
sllin 

%%
% The displays shows that |'y1m'| is the second opening of |sllin| .  

%% 
% Remove the opening from the interface. 
removeOpening(sllin,2);